aboutsummaryrefslogtreecommitdiff
path: root/libpod/pod_api.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-12-18 09:42:01 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2019-12-19 13:33:17 -0500
commit123b8c627d53c6bd76ff4d9f6a74674341a987c0 (patch)
treee6bdf872b1264da1001a24145c4165b4b96e6527 /libpod/pod_api.go
parent6b956dfd1f1071ceb40b403a9604da387979105a (diff)
downloadpodman-123b8c627d53c6bd76ff4d9f6a74674341a987c0.tar.gz
podman-123b8c627d53c6bd76ff4d9f6a74674341a987c0.tar.bz2
podman-123b8c627d53c6bd76ff4d9f6a74674341a987c0.zip
if container is not in a pid namespace, stop all processes
When a container is in a PID namespace, it is enought to send the stop signal to the PID 1 of the namespace, only send signals to all processes in the container when the container is not in a pid namespace. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/pod_api.go')
-rw-r--r--libpod/pod_api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/pod_api.go b/libpod/pod_api.go
index b27257004..cb04f7411 100644
--- a/libpod/pod_api.go
+++ b/libpod/pod_api.go
@@ -123,7 +123,7 @@ func (p *Pod) StopWithTimeout(ctx context.Context, cleanup bool, timeout int) (m
if timeout > -1 {
stopTimeout = uint(timeout)
}
- if err := ctr.stop(stopTimeout, false); err != nil {
+ if err := ctr.stop(stopTimeout); err != nil {
ctr.lock.Unlock()
ctrErrors[ctr.ID()] = err
continue