Return correct process pid for lxc

Fixes #2875
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby
2014-03-05 18:02:19 -08:00
parent d03be9d7cf
commit 69e3d30bb6
5 changed files with 106 additions and 17 deletions
+1
View File
@@ -266,6 +266,7 @@ type dockerStateWriter struct {
}
func (d *dockerStateWriter) WritePid(pid int) error {
d.c.ContainerPid = pid
err := d.dsw.WritePid(pid)
if d.callback != nil {
d.callback(d.c)