pause.c: Document intended PID 1 behavior
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user