summaryrefslogtreecommitdiff
path: root/libpod/oci.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/oci.go')
-rw-r--r--libpod/oci.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/oci.go b/libpod/oci.go
index 63aff9487..ef32079f9 100644
--- a/libpod/oci.go
+++ b/libpod/oci.go
@@ -571,7 +571,8 @@ func (r *OCIRuntime) execStopContainer(ctr *Container, timeout uint) error {
// Get a list of active exec sessions
execSessions := []int{}
- for _, pid := range ctr.state.ExecSessions {
+ for _, session := range ctr.state.ExecSessions {
+ pid := session.PID
// Ping the PID with signal 0 to see if it still exists
if err := unix.Kill(pid, 0); err == unix.ESRCH {
continue