aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_init.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2013-07-04 17:44:23 +0200
committerRickard Green <[email protected]>2013-07-09 14:39:04 +0200
commit604d320f23c42c349f3f44710bcbc05fde7db661 (patch)
treef5f878652907634a2f9182cd1dc8a8ec66fc9175 /erts/emulator/beam/erl_init.c
parent8cece79b77952c991e62ae595bcf71cde016a052 (diff)
downloadotp-604d320f23c42c349f3f44710bcbc05fde7db661.tar.gz
otp-604d320f23c42c349f3f44710bcbc05fde7db661.tar.bz2
otp-604d320f23c42c349f3f44710bcbc05fde7db661.zip
Make emulator arguments available via the system_info BIF
erlang:system_info(emu_args)
Diffstat (limited to 'erts/emulator/beam/erl_init.c')
-rw-r--r--erts/emulator/beam/erl_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c
index 4bae3dfeb4..8d137df7ae 100644
--- a/erts/emulator/beam/erl_init.c
+++ b/erts/emulator/beam/erl_init.c
@@ -637,6 +637,8 @@ early_init(int *argc, char **argv) /*
char envbuf[21]; /* enough for any 64-bit integer */
size_t envbufsz;
+ erts_save_emu_args(*argc, argv);
+
erts_sched_compact_load = 1;
erts_printf_eterm_func = erts_printf_term;
erts_disable_tolerant_timeofday = 0;