This commit is contained in:
Kovid Goyal
2024-05-23 08:36:21 +05:30
parent 044782ee13
commit 5dd737e991

View File

@@ -222,6 +222,8 @@ func RunCommandRestoringTerminalToSaneStateAfter(cmd []string) {
fmt.Fprintln(os.Stderr, cmd[0], "failed to start with error:", err)
return
}
// Ignore SIGINT as the kernel tends to send it to us as well as the
// subprocess on Ctrl+C
signal.Ignore(os.Interrupt)
defer signal.Reset(os.Interrupt)
err = c.Wait()