浏览代码

Merge pull request #5643 from crosbymichael/fix-native-pid

Set container pid for process in native driver
Victor Vieux 11 年之前
父节点
当前提交
41b2874b99
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      daemon/execdriver/native/driver.go

+ 1 - 0
daemon/execdriver/native/driver.go

@@ -122,6 +122,7 @@ func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba
 		return &c.Cmd
 	}, func() {
 		if startCallback != nil {
+			c.ContainerPid = c.Process.Pid
 			startCallback(c)
 		}
 	})