mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 16:05:02 +02:00
Also handle SIGPIPE as the Go runtime does funky things with this signal
This commit is contained in:
@@ -174,6 +174,10 @@ func (self *Loop) on_SIGINT() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *Loop) on_SIGPIPE() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *Loop) on_SIGWINCH() error {
|
||||
self.screen_size.updated = false
|
||||
if self.OnResize != nil {
|
||||
@@ -287,7 +291,7 @@ func (self *Loop) Run() (err error) {
|
||||
}()
|
||||
|
||||
sigchnl := make(chan os.Signal, 256)
|
||||
reset_signals := notify_signals(sigchnl, SIGINT, SIGTERM, SIGTSTP, SIGHUP, SIGWINCH)
|
||||
reset_signals := notify_signals(sigchnl, SIGINT, SIGTERM, SIGTSTP, SIGHUP, SIGWINCH, SIGPIPE)
|
||||
defer reset_signals()
|
||||
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user