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:
Daniel J Walsh
2017-12-19 15:42:30 -05:00
committed by Atomic Bot
parent 3607fcb553
commit 1f49f555af
12 changed files with 50 additions and 18 deletions

View File

@ -26,6 +26,7 @@ func getTestContainer(id, name, locksDir string) (*Container, error) {
Stdin: true,
Labels: make(map[string]string),
StopSignal: 0,
StopTimeout: 0,
CreatedTime: time.Now(),
},
state: &containerRuntimeInfo{