diff options
author | Rickard Green <[email protected]> | 2013-07-04 17:44:23 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2013-07-09 14:39:04 +0200 |
commit | 604d320f23c42c349f3f44710bcbc05fde7db661 (patch) | |
tree | f5f878652907634a2f9182cd1dc8a8ec66fc9175 /erts/emulator/beam/erl_bif_info.c | |
parent | 8cece79b77952c991e62ae595bcf71cde016a052 (diff) | |
download | otp-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_bif_info.c')
-rwxr-xr-x | erts/emulator/beam/erl_bif_info.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c index 74a37f374d..447c1fdf18 100755 --- a/erts/emulator/beam/erl_bif_info.c +++ b/erts/emulator/beam/erl_bif_info.c @@ -2646,6 +2646,9 @@ BIF_RETTYPE system_info_1(BIF_ALIST_1) #endif BIF_RET(am_true); } + else if (ERTS_IS_ATOM_STR("emu_args", BIF_ARG_1)) { + BIF_RET(erts_get_emu_args(BIF_P)); + } else if (ERTS_IS_ATOM_STR("dynamic_trace", BIF_ARG_1)) { #if defined(USE_DTRACE) DECL_AM(dtrace); |