mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
...
This commit is contained in:
@@ -222,6 +222,8 @@ func RunCommandRestoringTerminalToSaneStateAfter(cmd []string) {
|
|||||||
fmt.Fprintln(os.Stderr, cmd[0], "failed to start with error:", err)
|
fmt.Fprintln(os.Stderr, cmd[0], "failed to start with error:", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// Ignore SIGINT as the kernel tends to send it to us as well as the
|
||||||
|
// subprocess on Ctrl+C
|
||||||
signal.Ignore(os.Interrupt)
|
signal.Ignore(os.Interrupt)
|
||||||
defer signal.Reset(os.Interrupt)
|
defer signal.Reset(os.Interrupt)
|
||||||
err = c.Wait()
|
err = c.Wait()
|
||||||
|
|||||||
Reference in New Issue
Block a user