diff options
author | Björn-Egil Dahlberg <[email protected]> | 2017-01-05 17:17:52 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2017-02-02 09:40:27 +0100 |
commit | 120f04387ade07ef5b8b6d20a04de7d21e0c40ca (patch) | |
tree | 9346ab9a010e0c6ceeed53224b8b37c4c185545a /lib/kernel/src/erl_signal_handler.erl | |
parent | afbec46949f0d31448386234efa89cec78b905e1 (diff) | |
download | otp-120f04387ade07ef5b8b6d20a04de7d21e0c40ca.tar.gz otp-120f04387ade07ef5b8b6d20a04de7d21e0c40ca.tar.bz2 otp-120f04387ade07ef5b8b6d20a04de7d21e0c40ca.zip |
erts: Use generic signal handler
Diffstat (limited to 'lib/kernel/src/erl_signal_handler.erl')
-rw-r--r-- | lib/kernel/src/erl_signal_handler.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/kernel/src/erl_signal_handler.erl b/lib/kernel/src/erl_signal_handler.erl index 43cc307ffd..8f924d2adc 100644 --- a/lib/kernel/src/erl_signal_handler.erl +++ b/lib/kernel/src/erl_signal_handler.erl @@ -31,6 +31,9 @@ init(_Args) -> handle_event(sigusr1, S) -> erlang:halt("Received SIGUSR1"), {ok, S}; +handle_event(sigquit, S) -> + erlang:halt(), + {ok, S}; handle_event(sigterm, S) -> error_logger:info_msg("SIGTERM received - shutting down~n"), ok = init:stop(), |