summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/proxy.go2
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()