Commit 9388b78d authored by Andrei Vagin's avatar Andrei Vagin Committed by Andrei Vagin

criu: call kerndat_init() after log_init()

We don't have rights to print anything into standard descriptors
and we want to have all output in a specified log file.
Reviewed-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent a148e874
......@@ -371,6 +371,9 @@ static int setup_opts_from_req(int sk, CriuOpts *req)
goto err;
}
if (kerndat_init())
return 1;
if (log_keep_err()) {
pr_perror("Can't tune log");
goto err;
......
......@@ -57,9 +57,6 @@ static int early_init(void)
if (init_service_fd())
return 1;
if (kerndat_init())
return 1;
return 0;
}
......@@ -213,6 +210,9 @@ int main(int argc, char *argv[], char *envp[])
if (log_init(opts.output))
return 1;
if (kerndat_init())
return 1;
if (opts.deprecated_ok)
pr_debug("DEPRECATED ON\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment