Commit 18d98b1
committed
Run containers with --init by default to avoid leaking zombie processes.
People running containers manually usually run with pid 1 being a
$SHELL, in which case waiting for child termination is something
implemented already as it's the core job of a $SHELL. However with this
jenkins plugin the command run is usually "cat" on Linux, which doesn't
wait at all for children. To have in jenkins a situation a bit like
during interactive container experience, start containers with --init
so zombie processes are correctly reaped.1 parent 7d5f6a0 commit 18d98b1
File tree
1 file changed
+1
-1
lines changed- src/main/java/org/jenkinsci/plugins/docker/workflow/client
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments