diff options
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/crond.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index 96131cae4..b29745576 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
| @@ -1001,6 +1001,10 @@ static int check_completions(void) | |||
| 1001 | /* else: r == 0: "process is still running" */ | 1001 | /* else: r == 0: "process is still running" */ |
| 1002 | file->cf_has_running = 1; | 1002 | file->cf_has_running = 1; |
| 1003 | } | 1003 | } |
| 1004 | |||
| 1005 | /* Reap any other children we don't actively track */ | ||
| 1006 | while (waitpid(-1, NULL, WNOHANG) > 0); | ||
| 1007 | |||
| 1004 | //FIXME: if !file->cf_has_running && file->deleted: delete it! | 1008 | //FIXME: if !file->cf_has_running && file->deleted: delete it! |
| 1005 | //otherwise deleted entries will stay forever, right? | 1009 | //otherwise deleted entries will stay forever, right? |
| 1006 | num_still_running += file->cf_has_running; | 1010 | num_still_running += file->cf_has_running; |
