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:
Hui Kang 2015-04-24 14:59:43 +00:00 committed by Michael Crosby
parent 67636f13fb
commit 1d89a25aec
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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),
}