Skip to content

Commit c520720

Browse files
authored
Merge pull request #993 from crosbymichael/disable-subreaper-exec
Disable the subreaper on exec
2 parents 84c344d + f61c6e4 commit c520720

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

exec.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ following will output a list of processes running in the container:
7979
Usage: "add a capability to the bounding set for the process",
8080
},
8181
cli.BoolFlag{
82-
Name: "no-subreaper",
83-
Usage: "disable the use of the subreaper used to reap reparented processes",
82+
Name: "no-subreaper",
83+
Usage: "disable the use of the subreaper used to reap reparented processes",
84+
Hidden: true,
8485
},
8586
},
8687
Action: func(context *cli.Context) error {
@@ -115,7 +116,7 @@ func execProcess(context *cli.Context) (int, error) {
115116
return -1, err
116117
}
117118
r := &runner{
118-
enableSubreaper: !context.Bool("no-subreaper"),
119+
enableSubreaper: false,
119120
shouldDestroy: false,
120121
container: container,
121122
console: context.String("console"),

0 commit comments

Comments
 (0)