Skip to content

Commit

Permalink
ctx: drop no_subreaper bool
Browse files Browse the repository at this point in the history
it was initially added for compatibility with runc but it was never
implemented, so let's clean it up.

Closes: containers#1369

Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Dec 5, 2023
1 parent 8781720 commit 49f439d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/create.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static struct argp_option options[]
{ "preserve-fds", OPTION_PRESERVE_FDS, "N", 0, "pass additional FDs to the container", 0 },
{ "no-pivot", OPTION_NO_PIVOT, 0, 0, "do not use pivot_root", 0 },
{ "pid-file", OPTION_PID_FILE, "FILE", 0, "where to write the PID of the container", 0 },
{ "no-subreaper", OPTION_NO_SUBREAPER, 0, 0, "do not create a subreaper process", 0 },
{ "no-subreaper", OPTION_NO_SUBREAPER, 0, 0, "do not create a subreaper process (ignored)", 0 },
{ "no-new-keyring", OPTION_NO_NEW_KEYRING, 0, 0, "keep the same session key", 0 },
{
0,
Expand Down Expand Up @@ -84,7 +84,6 @@ parse_opt (int key, char *arg, struct argp_state *state)
break;

case OPTION_NO_SUBREAPER:
crun_context.no_subreaper = true;
break;

case OPTION_NO_PIVOT:
Expand Down
1 change: 0 additions & 1 deletion src/libcrun/container.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ struct libcrun_context_s

bool systemd_cgroup;
bool detach;
bool no_subreaper;
bool no_new_keyring;
bool force_no_cgroup;
bool no_pivot;
Expand Down
1 change: 0 additions & 1 deletion src/run.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ parse_opt (int key, char *arg, struct argp_state *state)
break;

case OPTION_NO_SUBREAPER:
crun_context.no_subreaper = true;
break;

case OPTION_NO_NEW_KEYRING:
Expand Down

0 comments on commit 49f439d

Please sign in to comment.