Avoid double close of criuServer

Signed-off-by: Ted Yu <yuzhihong@gmail.com>
This commit is contained in:
Ted Yu 2020-04-01 16:15:23 -07:00
parent 9ec5b03e5a
commit 49896ab0f4
1 changed files with 0 additions and 1 deletions

View File

@ -1488,7 +1488,6 @@ func (c *linuxContainer) criuSwrk(process *Process, req *criurpc.CriuReq, opts *
if err := cmd.Start(); err != nil { if err := cmd.Start(); err != nil {
return err return err
} }
criuServer.Close()
// cmd.Process will be replaced by a restored init. // cmd.Process will be replaced by a restored init.
criuProcess := cmd.Process criuProcess := cmd.Process