Skip to content

Commit ff38d6e

Browse files
Merge pull request #1944 from Ace-Tang/criu_notify_pid
cr: get pid from criu notify when restore
2 parents 4932620 + dce70cd commit ff38d6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libcontainer/container_linux.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,7 @@ func (c *linuxContainer) criuNotifications(resp *criurpc.CriuResp, process *Proc
15541554
if err != nil {
15551555
return nil
15561556
}
1557+
s.Pid = int(notify.GetPid())
15571558
for i, hook := range c.config.Hooks.Prestart {
15581559
if err := hook.Run(s); err != nil {
15591560
return newSystemErrorWithCausef(err, "running prestart hook %d", i)

0 commit comments

Comments
 (0)