mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Plumb through the --stop-timeout signal handling
podman run/create have the ability to set the stop timeout flag. We need to stop it in the database. Also Allowing negative time for stop timeout makes no sense, so switching to timeout of uint, allows user to specify huge timeout values. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #158 Approved by: TomSweeneyRedHat
This commit is contained in:

committed by
Atomic Bot

parent
3607fcb553
commit
1f49f555af
@ -401,7 +401,7 @@ func (r *OCIRuntime) killContainer(ctr *Container, signal uint) error {
|
||||
// immediately kill with SIGKILL
|
||||
// Does not set finished time for container, assumes you will run updateStatus
|
||||
// after to pull the exit code
|
||||
func (r *OCIRuntime) stopContainer(ctr *Container, timeout int64) error {
|
||||
func (r *OCIRuntime) stopContainer(ctr *Container, timeout uint) error {
|
||||
// Ping the container to see if it's alive
|
||||
// If it's not, it's already stopped, return
|
||||
err := unix.Kill(ctr.state.PID, 0)
|
||||
|
Reference in New Issue
Block a user