summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r--src/kernel/syscalls.c4
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
}
}