From d135afb5e81c295b001863821108849cf9a5027a Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Wed, 24 Jan 2024 09:42:22 -0500 Subject: [PATCH] fix: ignore proper exit on sigterm --- lua/live-server.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/live-server.lua b/lua/live-server.lua index 4bbe693..3a3c312 100644 --- a/lua/live-server.lua +++ b/lua/live-server.lua @@ -67,7 +67,8 @@ M.start = function() on_exit = function(_, exit_code) job_cache[dir] = nil - if exit_code == 0 then + -- instance killed with SIGTERM + if exit_code == 143 then return end