Merge pull request #1944 from Ace-Tang/criu_notify_pid

cr: get pid from criu notify when restore
This commit is contained in:
Michael Crosby
2018-12-03 10:35:58 -05:00
committed by GitHub
+1
View File
@@ -1554,6 +1554,7 @@ func (c *linuxContainer) criuNotifications(resp *criurpc.CriuResp, process *Proc
if err != nil {
return nil
}
s.Pid = int(notify.GetPid())
for i, hook := range c.config.Hooks.Prestart {
if err := hook.Run(s); err != nil {
return newSystemErrorWithCausef(err, "running prestart hook %d", i)