diff options
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index f1abe30..8e42f8e 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -32,8 +32,8 @@ long _syscall_await(void) { { if (iter->noreap) continue; has_children = true; - if (iter->state == PS_DEAD) { - process_try2collect(iter); + if (iter->state == PS_TOREAP) { + process_tryreap(iter); return 0; // dummy } } |