diff options
author | Björn-Egil Dahlberg <[email protected]> | 2012-10-11 16:38:04 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2012-10-16 16:16:28 +0200 |
commit | d4172bde993275f26b62b53af85a5ac092846dad (patch) | |
tree | b45163905f5d66860be97d7ac76e90d177fa60e9 /erts/emulator/beam/sys.h | |
parent | a725c75107cea0ba72efdf18c9b135974b6c4339 (diff) | |
download | otp-d4172bde993275f26b62b53af85a5ac092846dad.tar.gz otp-d4172bde993275f26b62b53af85a5ac092846dad.tar.bz2 otp-d4172bde993275f26b62b53af85a5ac092846dad.zip |
erts: Change ERL_CRASH_DUMP_SECONDS behaviour
Not setting ERL_CRASH_DUMP_SECONDS will now terminate beam
immediately on a crash without writing a crash dump file.
Setting ERL_CRASH_DUMP_SECONDS to 0 will also terminate beam
immediately on a crash without writing a crash dump file, i.e. same as not
setting ERL_CRASH_DUMP_SECONDS environment variable.
Setting ERL_CRASH_DUMP_SECONDS to a negative value will let the beam wait
indefinitely on the crash dump file being written.
Setting ERL_CRASH_DUMP_SECONDS to a positive value will let the beam wait
that many seconds on the crash dump file being written.
A positive value will set both an alarm in beam AND a heart timeout for restart
if heart is running.
This is due to the change of 'heart' behavior when 'heart' is
listening for a crash.
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r-- | erts/emulator/beam/sys.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h index 2406c52f14..9dd8341520 100644 --- a/erts/emulator/beam/sys.h +++ b/erts/emulator/beam/sys.h @@ -652,7 +652,7 @@ void erts_sys_schedule_interrupt_timed(int set, erts_short_time_t msec); void erts_sys_main_thread(void); #endif -extern void erts_sys_prepare_crash_dump(void); +extern void erts_sys_prepare_crash_dump(int secs); extern void erts_sys_pre_init(void); extern void erl_sys_init(void); extern void erl_sys_args(int *argc, char **argv); |