k3s/build/pause
Kubernetes Submit Queue 4f8f6006cf Merge pull request #36853 from verb/init
Automatic merge from submit-queue (batch tested with PRs 39446, 40023, 36853)

Add SIGCHLD handler to pause container

**What this PR does / why we need it**: This allows pause to reap orphaned zombies in a shared PID namespace. (#1615)

**Special notes for your reviewer**: I plan to discuss this with SIG Node to ensure compatibility with future runtimes.

**Release note**: This will have no effect until shared PID namespace is enabled, so recommend release-note-none.

This allows pause to reap zombies in the upcoming Shared PID namespace
(#1615). Uses the better defined sigaction() instead of signal() for all
signals both for consistency (SIGCHLD handler avoids SA_RESTART) and to
avoid the implicit signal()->sigaction() translation of various libc
versions.

Also makes warnings errors and includes a tool to make orphaned zombies
for manual testing.
2017-01-19 18:53:49 -08:00
..
.gitignore Rename build-tools/ back to build/ 2016-12-14 13:42:15 -08:00
Dockerfile Rename build-tools/ back to build/ 2016-12-14 13:42:15 -08:00
Makefile Merge pull request #36853 from verb/init 2017-01-19 18:53:49 -08:00
orphan.c Move orphan.c to catch up to build-tools rename 2016-12-16 02:36:32 +00:00
pause.c Remove SIGKILL handler from pause.c 2017-01-19 22:50:21 +00:00