diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-12-16 12:24:13 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2017-01-19 14:24:47 +0100 |
commit | 2d3bf84d8167b50728b0a5411a4e2dfa71d52c10 (patch) | |
tree | b15405ec6f834e7a6acaee2eb6acbe9ce43f7f30 /lib/kernel | |
parent | 40c82769def0cfa59e75669ff1c6fc4abcecd764 (diff) | |
download | otp-2d3bf84d8167b50728b0a5411a4e2dfa71d52c10.tar.gz otp-2d3bf84d8167b50728b0a5411a4e2dfa71d52c10.tar.bz2 otp-2d3bf84d8167b50728b0a5411a4e2dfa71d52c10.zip |
erts: Handle SIGUSR1 via signal service instead
Diffstat (limited to 'lib/kernel')
-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 04130eac66..43cc307ffd 100644 --- a/lib/kernel/src/erl_signal_handler.erl +++ b/lib/kernel/src/erl_signal_handler.erl @@ -28,6 +28,9 @@ init(_Args) -> {ok, #state{}}. +handle_event(sigusr1, S) -> + erlang:halt("Received SIGUSR1"), + {ok, S}; handle_event(sigterm, S) -> error_logger:info_msg("SIGTERM received - shutting down~n"), ok = init:stop(), |