s/SIGCLD/SIGCHLD/ that was Sysv4 shit
This commit is contained in:
parent
f14d74a3ac
commit
d17b86a41f
1 changed files with 3 additions and 3 deletions
|
@ -66,7 +66,7 @@ void Openbox::signalHandler(int signal)
|
||||||
openbox->restart();
|
openbox->restart();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SIGCLD:
|
case SIGCHLD:
|
||||||
wait(NULL);
|
wait(NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -121,9 +121,9 @@ Openbox::Openbox(int argc, char **argv)
|
||||||
sigaction(SIGTERM, &action, (struct sigaction *) 0);
|
sigaction(SIGTERM, &action, (struct sigaction *) 0);
|
||||||
sigaction(SIGINT, &action, (struct sigaction *) 0);
|
sigaction(SIGINT, &action, (struct sigaction *) 0);
|
||||||
sigaction(SIGHUP, &action, (struct sigaction *) 0);
|
sigaction(SIGHUP, &action, (struct sigaction *) 0);
|
||||||
sigaction(SIGCLD, &action, (struct sigaction *) 0);
|
sigaction(SIGCHLD, &action, (struct sigaction *) 0);
|
||||||
|
|
||||||
// anything that died while we were restarting won't give us a SIGCLD
|
// anything that died while we were restarting won't give us a SIGCHLD
|
||||||
while (waitpid(-1, NULL, WNOHANG) > 0);
|
while (waitpid(-1, NULL, WNOHANG) > 0);
|
||||||
|
|
||||||
otk::Timer::initialize();
|
otk::Timer::initialize();
|
||||||
|
|
Loading…
Reference in a new issue