fix: reload. Manage unhandled signal on file change
This commit is contained in:
@@ -129,6 +129,17 @@ defmodule OrgGarden.Watcher do
|
||||
{:noreply, %{state | processing: false}}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_info({:EXIT, _pid_or_port, :normal}, state) do
|
||||
{:noreply, state}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_info({:EXIT, pid_or_port, reason}, state) do
|
||||
Logger.warning("Watcher: unexpected exit from #{inspect(pid_or_port)}: #{inspect(reason)}")
|
||||
{:noreply, state}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def terminate(reason, state) do
|
||||
Logger.info("Watcher: shutting down (#{inspect(reason)})")
|
||||
|
||||
Reference in New Issue
Block a user