Skip to content

Commit

Permalink
Terminate execution for criu that does not meet version requirements
Browse files Browse the repository at this point in the history
Signed-off-by: yangzhao.hjh <yangzhao.hjh@alibaba-inc.com>
  • Loading branch information
yangzhao02 committed Oct 9, 2024
1 parent 8bf5f0d commit 4f9d4fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcontainer/criu_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func criuNsToKey(t configs.NamespaceType) string {

func (c *Container) handleCheckpointingExternalNamespaces(rpcOpts *criurpc.CriuOpts, t configs.NamespaceType) error {
if !c.criuSupportsExtNS(t) {
return nil
return fmt.Errorf("criu version does not meet the requirements")
}

nsPath := c.config.Namespaces.PathOf(t)
Expand Down

0 comments on commit 4f9d4fb

Please sign in to comment.