From 4693935fccf934623ddd8438a7db3716bb21fe04 Mon Sep 17 00:00:00 2001 From: Ignacio Ballesteros Date: Mon, 23 Feb 2026 16:28:18 +0100 Subject: [PATCH] fix: reload. Manage unhandled signal on file change --- lib/org_garden/watcher.ex | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/org_garden/watcher.ex b/lib/org_garden/watcher.ex index 911c68e..c2b8d66 100644 --- a/lib/org_garden/watcher.ex +++ b/lib/org_garden/watcher.ex @@ -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)})")