From b99e5b495954686ddfb7661af4ce56296d8935d5 Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Sat, 8 Nov 2025 20:20:55 +0100 Subject: Use SIGTERM instead of SIGKILL for preview process --- src/util/util_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util_unix.go b/src/util/util_unix.go index 5a67066b..404157cc 100644 --- a/src/util/util_unix.go +++ b/src/util/util_unix.go @@ -70,7 +70,7 @@ func (x *Executor) Become(stdin *os.File, environ []string, command string) { // KillCommand kills the process for the given command func KillCommand(cmd *exec.Cmd) error { - return syscall.Kill(-cmd.Process.Pid, syscall.SIGKILL) + return syscall.Kill(-cmd.Process.Pid, syscall.SIGTERM) } // IsWindows returns true on Windows -- cgit v1.2.3