Skip to content

Commit

Permalink
criu: do not set network_lock if not specified
Browse files Browse the repository at this point in the history
commit c4f8c87 introduced the issue.

Closes: containers#1627

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
  • Loading branch information
giuseppe committed Dec 19, 2024
1 parent a48818a commit 2bb4335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcrun/criu.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ libcrun_container_checkpoint_linux_criu (libcrun_container_status_t *status, lib
libcriu_wrapper->criu_set_manage_cgroups_mode (cr_options->manage_cgroups_mode);
libcriu_wrapper->criu_set_manage_cgroups (true);

if (libcriu_wrapper->criu_set_network_lock)
if (libcriu_wrapper->criu_set_network_lock && cr_options->network_lock_method > 0)
libcriu_wrapper->criu_set_network_lock (cr_options->network_lock_method);

ret = libcriu_wrapper->criu_dump ();
Expand Down

0 comments on commit 2bb4335

Please sign in to comment.