mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
fix: Multiplication of durations
'killContainerTimeout' is already 5 second [NO NEW TESTS NEEDED] Signed-off-by: myml <wurongjie1@gmail.com>
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user