Skip to content

Commit

Permalink
criu: util_init before the criu service worker is started
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenzo Fontana <[email protected]>
  • Loading branch information
fntlnz committed Oct 21, 2024
1 parent dfb56ee commit 7eab79b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions criu/crtools.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ int main(int argc, char *argv[], char *envp[])
goto usage;
}

util_init();
if (opts.mode == CR_SWRK) {
if (argc != optind + 2) {
fprintf(stderr, "Usage: criu swrk <fd>\n");
Expand Down Expand Up @@ -254,8 +255,6 @@ int main(int argc, char *argv[], char *envp[])
return 1;
}

util_init();

if (log_init(opts.output))
return 1;

Expand Down

0 comments on commit 7eab79b

Please sign in to comment.