mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
pause.c: Document intended PID 1 behavior
This commit is contained in:
parent
7910a3f315
commit
c706a052ef
@ -33,6 +33,7 @@ static void sigreap(int signo) {
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
if (getpid() != 1)
|
if (getpid() != 1)
|
||||||
|
/* Not an error because pause sees use outside of infra containers. */
|
||||||
fprintf(stderr, "Warning: pause should be the first process in a pod\n");
|
fprintf(stderr, "Warning: pause should be the first process in a pod\n");
|
||||||
|
|
||||||
if (sigaction(SIGINT, &(struct sigaction){.sa_handler = sigdown}, NULL) < 0)
|
if (sigaction(SIGINT, &(struct sigaction){.sa_handler = sigdown}, NULL) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user