Commit 3c62d950 authored by Veronika Kabatova's avatar Veronika Kabatova Committed by Pavel Emelyanov

Change tcp-close option to negated style

Code for tcp-close option was added after boolean-valued options
were modified to accept their negations as well. Since tcp-close
option works only with boolean values and does not accept any
argument, it should be wriiten in the same manner to allow users
to override the value when using configuration files.
Signed-off-by: 's avatarVeronika Kabatova <vkabatov@redhat.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 8fcfa59b
......@@ -290,7 +290,7 @@ int main(int argc, char *argv[], char *envp[])
BOOL_OPT("display-stats", &opts.display_stats),
BOOL_OPT("weak-sysctls", &opts.weak_sysctls),
{ "status-fd", required_argument, 0, 1088 },
{ SK_CLOSE_PARAM, no_argument, 0, 1089 },
BOOL_OPT(SK_CLOSE_PARAM, &opts.tcp_close),
{ "verbosity", optional_argument, 0, 'v' },
{ },
};
......@@ -570,9 +570,6 @@ int main(int argc, char *argv[], char *envp[])
return 1;
}
break;
case 1089:
opts.tcp_close = true;
break;
case 'V':
pr_msg("Version: %s\n", CRIU_VERSION);
if (strcmp(CRIU_GITID, "0"))
......
......@@ -63,7 +63,7 @@ struct cr_options {
int shell_job;
int handle_file_locks;
int tcp_established_ok;
bool tcp_close;
int tcp_close;
int evasive_devices;
int link_remap_ok;
int log_file_per_pid;
......
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