Merge pull request #570 from crosbymichael/tty-nil
Check if tty is nil in handler
This commit is contained in:
commit
488e315c21
|
@ -109,5 +109,8 @@ func (h *signalHandler) reap() (exits []exit, err error) {
|
|||
}
|
||||
|
||||
func (h *signalHandler) Close() error {
|
||||
return h.tty.Close()
|
||||
if h.tty != nil {
|
||||
return h.tty.Close()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue