Skip to content

Commit 674f4a2

Browse files
author
José Valim
committed
Do not erase elixir_compiler_pid
1 parent b326fe1 commit 674f4a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/elixir/lib/kernel/error_handler.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ defmodule Kernel.ErrorHandler do
2525
{ ^ref, :ready } ->
2626
:ok
2727
{ ^ref, :release } ->
28-
# On release, get rid of the compiler pid,
29-
# no further allow elixir_ensure_compiled directives
30-
# and revert to the original error handler.
31-
:erlang.erase(:elixir_compiler_pid)
28+
# On release, no further allow elixir_ensure_compiled
29+
# directives and revert to the original error handler.
30+
# Note we should not delete the elixir_compiler_pid though,
31+
# as we still want to send notifications to the compiler.
3232
:erlang.erase(:elixir_ensure_compiled)
3333
:erlang.process_flag(:error_handler, :error_handler)
3434
end

0 commit comments

Comments
 (0)