aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2017-01-05 17:17:52 +0100
committerBjörn-Egil Dahlberg <[email protected]>2017-02-02 09:40:27 +0100
commit120f04387ade07ef5b8b6d20a04de7d21e0c40ca (patch)
tree9346ab9a010e0c6ceeed53224b8b37c4c185545a /lib/kernel
parentafbec46949f0d31448386234efa89cec78b905e1 (diff)
downloadotp-120f04387ade07ef5b8b6d20a04de7d21e0c40ca.tar.gz
otp-120f04387ade07ef5b8b6d20a04de7d21e0c40ca.tar.bz2
otp-120f04387ade07ef5b8b6d20a04de7d21e0c40ca.zip
erts: Use generic signal handler
Diffstat (limited to 'lib/kernel')
-rw-r--r--lib/kernel/src/erl_signal_handler.erl3
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(),