aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/kernel.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2018-05-03 20:20:52 +0200
committerLukas Larsson <[email protected]>2018-05-15 10:21:53 +0200
commit6dcc96f4c8a14e05398a1ee8c4c5ccc7f2fbe778 (patch)
tree1b135f05da52197e23ff61b4b74b5f362ac538c3 /lib/kernel/src/kernel.erl
parentcafff554ed7c8b820a7758b10aa32fc699f341eb (diff)
downloadotp-6dcc96f4c8a14e05398a1ee8c4c5ccc7f2fbe778.tar.gz
otp-6dcc96f4c8a14e05398a1ee8c4c5ccc7f2fbe778.tar.bz2
otp-6dcc96f4c8a14e05398a1ee8c4c5ccc7f2fbe778.zip
kernel: Refactor erl_signal_handler startup
Diffstat (limited to 'lib/kernel/src/kernel.erl')
-rw-r--r--lib/kernel/src/kernel.erl8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/kernel/src/kernel.erl b/lib/kernel/src/kernel.erl
index 20aa47f602..ae982c1741 100644
--- a/lib/kernel/src/kernel.erl
+++ b/lib/kernel/src/kernel.erl
@@ -32,13 +32,7 @@
start(_, []) ->
case supervisor:start_link({local, kernel_sup}, kernel, []) of
{ok, Pid} ->
- %% add signal handler
- case whereis(erl_signal_server) of
- %% in case of minimal mode
- undefined -> ok;
- _ ->
- ok = gen_event:add_handler(erl_signal_server, erl_signal_handler, [])
- end,
+ ok = erl_signal_handler:start(),
%% add error handler
case logger:setup_standard_handler() of
ok -> {ok, Pid, []};