mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
options: Use union for @daemon and @restore_detach
They both are using 'd' option in different context though, lets give them two names. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
374017cfa4
commit
391d589482
@@ -558,10 +558,10 @@ int main(int argc, char *argv[], char *envp[])
|
||||
}
|
||||
|
||||
if (!strcmp(argv[optind], "page-server"))
|
||||
return cr_page_server(opts.restore_detach, -1) > 0 ? 0 : 1;
|
||||
return cr_page_server(opts.daemon_mode, -1) > 0 ? 0 : 1;
|
||||
|
||||
if (!strcmp(argv[optind], "service"))
|
||||
return cr_service(opts.restore_detach);
|
||||
return cr_service(opts.daemon_mode);
|
||||
|
||||
if (!strcmp(argv[optind], "dedup"))
|
||||
return cr_dedup() != 0;
|
||||
|
Reference in New Issue
Block a user