errcheck: signals

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2021-02-01 19:34:22 +01:00
parent 3b31e3eaac
commit 0c65f833ef
+4 -4
View File
@@ -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
} }
} }