X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=state.c;fp=state.c;h=0896e1ae34f6430ad7abdee5ba5d46f3dfc238a3;hp=7f0ec508566188d8e6a1e7afa34408c04634cde0;hb=3ff99010e61a0299257ffc91467a16d278a7e774;hpb=8b27adcf7516fa89ced66c840cfb085f2b6067af diff --git a/state.c b/state.c index 7f0ec50..0896e1a 100644 --- a/state.c +++ b/state.c @@ -131,6 +131,8 @@ static void state_enter(void) break; case STATE_HALT: + // To prevent killed processes from interrupting the sleep + signal(SIGCHLD, SIG_IGN); LOG("- SIGTERM processes -\n"); kill(-1, SIGTERM); sync();