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.
This commit is contained in:
Itamar 2020-10-14 21:47:19 +03:00 committed by Andreas Kling
parent 2c0e153396
commit 26b430bee7
Notes: sideshowbarker 2024-07-19 01:53:17 +09:00

View file

@ -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))