From 58adf1a835969b31d2f312d7ab22fe821f40c7e2 Mon Sep 17 00:00:00 2001 From: myml Date: Tue, 8 Feb 2022 09:13:06 +0800 Subject: fix: Multiplication of durations 'killContainerTimeout' is already 5 second [NO NEW TESTS NEEDED] Signed-off-by: myml --- libpod/oci_conmon_exec_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpod') diff --git a/libpod/oci_conmon_exec_linux.go b/libpod/oci_conmon_exec_linux.go index 04deaac83..aa970bbde 100644 --- a/libpod/oci_conmon_exec_linux.go +++ b/libpod/oci_conmon_exec_linux.go @@ -257,7 +257,7 @@ func (r *ConmonOCIRuntime) ExecStopContainer(ctr *Container, sessionID string, t } // Wait for the PID to stop - if err := waitPidStop(pid, killContainerTimeout*time.Second); err != nil { + if err := waitPidStop(pid, killContainerTimeout); err != nil { return errors.Wrapf(err, "timed out waiting for container %s exec session %s PID %d to stop after SIGKILL", ctr.ID(), sessionID, pid) } -- cgit v1.2.3-54-g00ecf