aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/common/erlexec.c
diff options
context:
space:
mode:
authorMagnus Henoch <[email protected]>2015-10-26 15:55:49 +0000
committerMagnus Henoch <[email protected]>2015-10-26 15:55:49 +0000
commitfb1c22169c96b51f331c0e7885cdbd0806585da2 (patch)
tree06481deb3fcc80b66bc49f0f1b87a6bcd52460bb /erts/etc/common/erlexec.c
parentbd1251dfe4d60f09e569731d36a92e94acbe297a (diff)
downloadotp-fb1c22169c96b51f331c0e7885cdbd0806585da2.tar.gz
otp-fb1c22169c96b51f331c0e7885cdbd0806585da2.tar.bz2
otp-fb1c22169c96b51f331c0e7885cdbd0806585da2.zip
Make erl -make return non-zero exit code on failure
This makes it behave like similar Unix tools.
Diffstat (limited to 'erts/etc/common/erlexec.c')
-rw-r--r--erts/etc/common/erlexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c
index b68e109b43..60aefc9fa7 100644
--- a/erts/etc/common/erlexec.c
+++ b/erts/etc/common/erlexec.c
@@ -715,7 +715,7 @@ int main(int argc, char **argv)
* on itself here. We'll avoid doing that.
*/
if (strcmp(argv[i], "-make") == 0) {
- add_args("-noshell", "-noinput", "-s", "make", "all", NULL);
+ add_args("-noshell", "-noinput", "-s", "make", "all_or_nothing", NULL);
add_Eargs("-B");
haltAfterwards = 1;
i = argc; /* Skip rest of command line */