diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-22 20:01:37 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-22 20:01:37 +0900 |
| commit | 552158f3ad8c92cfd36bf299db280228acba2fcb (patch) | |
| tree | d170a20926cc4c86ed64984ef4877bc0e3921bef | |
| parent | 7205203dc80e74e4053ba3225ca2fcb83a902cb5 (diff) | |
| download | fzf-552158f3ad8c92cfd36bf299db280228acba2fcb.tar.gz | |
Ignore SIGINT when running as proxy
| -rw-r--r-- | src/proxy.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proxy.go b/src/proxy.go index a1e8f805..65a56604 100644 --- a/src/proxy.go +++ b/src/proxy.go @@ -7,6 +7,7 @@ import ( "io" "os" "os/exec" + "os/signal" "path/filepath" "strings" "time" @@ -102,6 +103,7 @@ func runProxy(commandPrefix string, cmdBuilder func(temp string) *exec.Cmd, opts defer os.Remove(temp) cmd := cmdBuilder(temp) + signal.Ignore(os.Interrupt) if err := cmd.Run(); err != nil { if exitError, ok := err.(*exec.ExitError); ok { code := exitError.ExitCode() |
