From 0c65f833ef5efd4145d6af8ec6355772bf1f64e9 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 1 Feb 2021 19:34:22 +0100 Subject: [PATCH] errcheck: signals Signed-off-by: Sebastiaan van Stijn --- signals.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/signals.go b/signals.go index 5682989c6..73d8de0fa 100644 --- a/signals.go +++ b/signals.go @@ -66,11 +66,11 @@ func (h *signalHandler) forward(process *libcontainer.Process, tty *tty, detach if h.notifySocket != nil { if detach { - h.notifySocket.run(pid1) + _ = h.notifySocket.run(pid1) return 0, nil } - h.notifySocket.run(os.Getpid()) - go h.notifySocket.run(0) + _ = h.notifySocket.run(os.Getpid()) + go func() { _ = h.notifySocket.run(0) }() } // 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 // status because we must ensure that any of the go specific process // fun such as flushing pipes are complete before we return. - process.Wait() + _, _ = process.Wait() return e.status, nil } }