Commit ec45a47f authored by Vinothkumar Siddharth's avatar Vinothkumar Siddharth

Improve pause-container warning message

parent 68a858f7
...@@ -34,7 +34,7 @@ static void sigreap(int signo) { ...@@ -34,7 +34,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. */ /* 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\n");
if (sigaction(SIGINT, &(struct sigaction){.sa_handler = sigdown}, NULL) < 0) if (sigaction(SIGINT, &(struct sigaction){.sa_handler = sigdown}, NULL) < 0)
return 1; return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment