signals: support detach and notify socket together

let runc run until READY= is received and then proceed with
detaching the process.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano
2017-02-09 12:27:12 +01:00
parent c8593c4d61
commit d5026f0e43
4 changed files with 25 additions and 15 deletions
+1 -4
View File
@@ -188,10 +188,7 @@ func restoreContainer(context *cli.Context, spec *specs.Spec, config *configs.Co
return -1, err
}
}
if detach {
return 0, nil
}
return handler.forward(process, tty)
return handler.forward(process, tty, detach)
}
func criuOptions(context *cli.Context) *libcontainer.CriuOpts {