mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 07:15:31 +00:00
page-server: Don't setup options in parent task
When service starts page server all the preparations (log, wdir, img dir, etc.) happen in parent task, then we fork page server. This is OK for now, but when we will serve several requests per connection, all these resources would be leaked in parent. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -496,7 +496,7 @@ int main(int argc, char *argv[], char *envp[])
|
||||
}
|
||||
|
||||
if (!strcmp(argv[optind], "page-server"))
|
||||
return cr_page_server(opts.restore_detach) > 0 ? 0 : 1;
|
||||
return cr_page_server(opts.restore_detach, -1) > 0 ? 0 : 1;
|
||||
|
||||
if (!strcmp(argv[optind], "service"))
|
||||
return cr_service(opts.restore_detach);
|
||||
|
Reference in New Issue
Block a user