diff options
author | Dan Gudmundsson <[email protected]> | 2017-05-23 12:43:33 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2017-05-23 12:48:38 +0200 |
commit | 13f07042fd333c9bc137e142c4dc24b7d5cbe909 (patch) | |
tree | 8119a381775e32bcdc8a943deb55b1001cbd2c86 /erts | |
parent | dfbefdcc85b2785e4d2280c1b70de8fd14a6778d (diff) | |
download | otp-13f07042fd333c9bc137e142c4dc24b7d5cbe909.tar.gz otp-13f07042fd333c9bc137e142c4dc24b7d5cbe909.tar.bz2 otp-13f07042fd333c9bc137e142c4dc24b7d5cbe909.zip |
Revert setting default argv0 name
Changing argv[0] from emu name to progname if ESCRIPT_NAME was not set
caused to many failing scripts, revert that part of the change.
See 86f6a9856
Diffstat (limited to 'erts')
-rw-r--r-- | erts/etc/common/erlexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c index 70520eea15..51ed2d0dff 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c @@ -555,7 +555,7 @@ int main(int argc, char **argv) if(s) { add_Eargs(s); /* argv[0] = scriptname*/ } else { - add_Eargs(progname); /* argv[0] = erl or cerl */ + add_Eargs(emu); /* argv[0] = erl or cerl */ } /* * Add the bindir to the path (unless it is there already). |