version 1.134, 2012/12/08 12:54:17 |
version 1.135, 2012/12/14 11:10:03 |
|
|
} |
} |
} |
} |
|
|
void |
static void |
setup_all_signals(void) |
setup_all_signals(void) |
{ |
{ |
sigemptyset(&sigset); |
sigemptyset(&sigset); |
|
|
* reception of new stuff on sigsuspend |
* reception of new stuff on sigsuspend |
*/ |
*/ |
sigprocmask(SIG_BLOCK, &sigset, &old); |
sigprocmask(SIG_BLOCK, &sigset, &old); |
|
/* note this will NOT loop until runningJobs == NULL. |
|
* It's merely an optimisation, namely that we don't need to go |
|
* through the logic if no job is present. As soon as a job |
|
* gets reaped, we WILL exit the loop through the break. |
|
*/ |
while (runningJobs != NULL) { |
while (runningJobs != NULL) { |
/* did we already have pending stuff that advances things ? |
/* did we already have pending stuff that advances things ? |
* then handle_all_signals() will not return |
* then handle_all_signals() will not return |