Commit 1bc4b8b5 authored by Adrian Reber's avatar Adrian Reber Committed by Andrei Vagin

config: remove unused pid option

This removes the code around '--pid, -p' which is not used at all. The
command-line option is still available to not break CRIU users, but as
the result has not been used, just  remove the code assigning it.
Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 139d2dbf
......@@ -354,8 +354,6 @@ int parse_options(int argc, char **argv, bool *usage_error, bool *has_exec_cmd)
{
int state = PARSING_GLOBAL_CONF;
int global_cfg_argc = 0, user_cfg_argc = 0;
/* remove pid, unused */
pid_t pid = 0;
int ret;
int opt;
int idx;
......@@ -368,6 +366,7 @@ int parse_options(int argc, char **argv, bool *usage_error, bool *has_exec_cmd)
static const char short_opts[] = "dSsRf:F:t:p:hcD:o:v::x::Vr:jJ:lW:L:M:";
static struct option long_opts[] = {
{ "tree", required_argument, 0, 't' },
/* The pid option is unused and never evaluated. */
{ "pid", required_argument, 0, 'p' },
{ "leave-stopped", no_argument, 0, 's' },
{ "leave-running", no_argument, 0, 'R' },
......@@ -507,11 +506,6 @@ int parse_options(int argc, char **argv, bool *usage_error, bool *has_exec_cmd)
return 1;
opts.ext_unix_sk = true;
break;
case 'p':
pid = atoi(optarg);
if (pid <= 0)
goto bad_arg;
break;
case 't':
opts.tree_id = atoi(optarg);
if (opts.tree_id <= 0)
......
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