fix: reload. Manage unhandled signal on file change

This commit is contained in:
Ignacio Ballesteros
2026-02-23 16:28:18 +01:00
parent 186b25ac5e
commit 4693935fcc

View File

@@ -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)})")