mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
Merge pull request #6732 from mheon/fix_stopsignal_set
Set stop signal to 15 when not explicitly set
This commit is contained in:
@ -83,6 +83,8 @@ func (r *Runtime) initContainerVariables(rSpec *spec.Spec, config *ContainerConf
|
||||
return nil, errors.Wrapf(err, "converting containers.conf ShmSize %s to an int", r.config.Containers.ShmSize)
|
||||
}
|
||||
ctr.config.ShmSize = size
|
||||
ctr.config.StopSignal = 15
|
||||
ctr.config.StopTimeout = r.config.Engine.StopTimeout
|
||||
} else {
|
||||
// This is a restore from an imported checkpoint
|
||||
ctr.restoreFromCheckpoint = true
|
||||
@ -107,8 +109,6 @@ func (r *Runtime) initContainerVariables(rSpec *spec.Spec, config *ContainerConf
|
||||
|
||||
ctr.state.BindMounts = make(map[string]string)
|
||||
|
||||
ctr.config.StopTimeout = r.config.Engine.StopTimeout
|
||||
|
||||
ctr.config.OCIRuntime = r.defaultOCIRuntime.Name()
|
||||
|
||||
// Set namespace based on current runtime namespace
|
||||
|
Reference in New Issue
Block a user