Fix a nil pointer bug when doing local checkpoint
Docker-DCO-1.1-Signed-off-by: Hui Kang <hkang.sunysb@gmail.com>
This commit is contained in:
parent
67636f13fb
commit
1d89a25aec
|
@ -12,5 +12,5 @@ type CriuOpts struct {
|
|||
TcpEstablished bool // checkpoint/restore established TCP connections
|
||||
ExternalUnixConnections bool // allow external unix connections
|
||||
ShellJob bool // allow to dump and restore shell jobs
|
||||
Ps *CriuPageServerInfo // allow to dump to criu page server
|
||||
Ps CriuPageServerInfo // allow to dump to criu page server
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ var checkpointCommand = cli.Command{
|
|||
if err != nil {
|
||||
fatal(fmt.Errorf("Invalid port number"))
|
||||
}
|
||||
criuOpts.Ps = &libcontainer.CriuPageServerInfo{
|
||||
criuOpts.Ps = libcontainer.CriuPageServerInfo{
|
||||
Address: addressPort[0],
|
||||
Port: int32(port_int),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue