mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
+4
-4
@@ -66,11 +66,11 @@ func (h *signalHandler) forward(process *libcontainer.Process, tty *tty, detach
|
|||||||
|
|
||||||
if h.notifySocket != nil {
|
if h.notifySocket != nil {
|
||||||
if detach {
|
if detach {
|
||||||
h.notifySocket.run(pid1)
|
_ = h.notifySocket.run(pid1)
|
||||||
return 0, nil
|
return 0, nil
|
||||||
}
|
}
|
||||||
h.notifySocket.run(os.Getpid())
|
_ = h.notifySocket.run(os.Getpid())
|
||||||
go h.notifySocket.run(0)
|
go func() { _ = h.notifySocket.run(0) }()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Perform the initial tty resize. Always ignore errors resizing because
|
// Perform the initial tty resize. Always ignore errors resizing because
|
||||||
@@ -96,7 +96,7 @@ func (h *signalHandler) forward(process *libcontainer.Process, tty *tty, detach
|
|||||||
// call Wait() on the process even though we already have the exit
|
// call Wait() on the process even though we already have the exit
|
||||||
// status because we must ensure that any of the go specific process
|
// status because we must ensure that any of the go specific process
|
||||||
// fun such as flushing pipes are complete before we return.
|
// fun such as flushing pipes are complete before we return.
|
||||||
process.Wait()
|
_, _ = process.Wait()
|
||||||
return e.status, nil
|
return e.status, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user