From c706a052ef823db1b689d1ee0a716e47f3db9673 Mon Sep 17 00:00:00 2001 From: Lee Verberne Date: Thu, 22 Dec 2016 21:51:10 +0000 Subject: [PATCH] pause.c: Document intended PID 1 behavior --- build/pause/pause.c | 1 + 1 file changed, 1 insertion(+) diff --git a/build/pause/pause.c b/build/pause/pause.c index 4dac4d1b5af..7bb383dc77f 100644 --- a/build/pause/pause.c +++ b/build/pause/pause.c @@ -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)