This commit is contained in:
Kovid Goyal 2024-05-23 08:36:21 +05:30
parent 044782ee13
commit 5dd737e991
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

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()