mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Improve pause-container warning message
Signed-off-by: Vinothkumar Siddharth <sidvin@amazon.com>
This commit is contained in:
parent
68a858f7da
commit
ec45a47f93
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user