Use proper wait function for --pid=host
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
924d503cb1
commit
489ab77f4a
|
|
@ -162,7 +162,7 @@ func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba
|
||||||
logrus.Warnf("Your kernel does not support OOM notifications: %s", err)
|
logrus.Warnf("Your kernel does not support OOM notifications: %s", err)
|
||||||
}
|
}
|
||||||
waitF := p.Wait
|
waitF := p.Wait
|
||||||
if nss := cont.Config().Namespaces; nss.Contains(configs.NEWPID) {
|
if nss := cont.Config().Namespaces; !nss.Contains(configs.NEWPID) {
|
||||||
// we need such hack for tracking processes with inerited fds,
|
// we need such hack for tracking processes with inerited fds,
|
||||||
// because cmd.Wait() waiting for all streams to be copied
|
// because cmd.Wait() waiting for all streams to be copied
|
||||||
waitF = waitInPIDHost(p, cont)
|
waitF = waitInPIDHost(p, cont)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue