diff options
author | Tom <tomut@yahoo.com> | 2020-12-08 21:18:45 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-12 21:28:12 +0100 |
commit | c455fc203055f88908a77f390398b16eccb903ae (patch) | |
tree | e5703bcebf8c320a813fb36dd6360b321e654a32 /Kernel/Syscalls/thread.cpp | |
parent | 47ede74326d980c0c14abc77025794b105fdcb07 (diff) | |
download | serenity-c455fc203055f88908a77f390398b16eccb903ae.zip |
Kernel: Change wait blocking to Process-only blocking
This prevents zombies created by multi-threaded applications and brings
our model back to closer to what other OSs do.
This also means that SIGSTOP needs to halt all threads, and SIGCONT needs
to resume those threads.
Diffstat (limited to 'Kernel/Syscalls/thread.cpp')
-rw-r--r-- | Kernel/Syscalls/thread.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Syscalls/thread.cpp b/Kernel/Syscalls/thread.cpp index 0e8a9be788..3ef4dbe14d 100644 --- a/Kernel/Syscalls/thread.cpp +++ b/Kernel/Syscalls/thread.cpp @@ -136,6 +136,7 @@ int Process::sys$join_thread(pid_t tid, Userspace<void**> exit_value) } if (result == Thread::BlockResult::InterruptedByDeath) break; + dbg() << "join_thread: retrying"; } if (exit_value && !copy_to_user(exit_value, &joinee_exit_value)) |