diff options
author | Itamar <itamar8910@gmail.com> | 2020-10-14 21:47:19 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-16 11:42:20 +0200 |
commit | 26b430bee79a0fe1c4dca235fdac45bd6f1b76df (patch) | |
tree | 0696c841e68a415be967828cbb0bd4cedd990844 /Kernel/Syscalls/thread.cpp | |
parent | 2c0e153396c7d6f4fad9fecaf0520e7b0c147ab6 (diff) | |
download | serenity-26b430bee79a0fe1c4dca235fdac45bd6f1b76df.zip |
Kernel: Fix sys$join_thread
Previously, when we unblocked because the joinee has died, we didn't
copy its exit value back to the user.
Diffstat (limited to 'Kernel/Syscalls/thread.cpp')
-rw-r--r-- | Kernel/Syscalls/thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/thread.cpp b/Kernel/Syscalls/thread.cpp index 88b05b6aa5..b4059a8878 100644 --- a/Kernel/Syscalls/thread.cpp +++ b/Kernel/Syscalls/thread.cpp @@ -137,7 +137,7 @@ int Process::sys$join_thread(pid_t tid, Userspace<void**> exit_value) break; } if (result == Thread::BlockResult::InterruptedByDeath) - return 0; // we're not going to return back to user mode + break; } if (exit_value && !copy_to_user(exit_value, &joinee_exit_value)) |