diff options
author | dzwdz | 2023-01-08 00:28:24 +0100 |
---|---|---|
committer | dzwdz | 2023-01-08 00:28:24 +0100 |
commit | 50723d19f972b7a50e3165620e57cb261c28056f (patch) | |
tree | 2d4ee4f6d9c5a09382697cafea419dc94de06a60 /src/kernel/syscalls.c | |
parent | a1a4ab33cd75f0bc1d5e71989b01ba3446c998ae (diff) |
kernel/proc: don't kill children when parent dies
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 } } |