mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
Check if tty is nil in handler
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
+4
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user