summaryrefslogtreecommitdiff
path: root/src/util/util_unix.go
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2025-11-08 20:20:55 +0100
committerJulian Hurst <ark@mansus.space>2025-11-08 20:24:49 +0100
commitb99e5b495954686ddfb7661af4ce56296d8935d5 (patch)
tree2f9036c1b5bb4e4cab203a6b9e49188e34f682a6 /src/util/util_unix.go
parent8cdfb23df69df0a991d122185b00e8900875a8cf (diff)
downloadfzf-v0.66.0-custom.tar.gz
Use SIGTERM instead of SIGKILL for preview processv0.66.0-custom
Diffstat (limited to 'src/util/util_unix.go')
-rw-r--r--src/util/util_unix.go2
1 files changed, 1 insertions, 1 deletions
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