mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +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() {
|
||||
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");
|
||||
|
||||
if (sigaction(SIGINT, &(struct sigaction){.sa_handler = sigdown}, NULL) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user