mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
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:
parent
2c0e153396
commit
26b430bee7
Notes:
sideshowbarker
2024-07-19 01:53:17 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/26b430bee79 Pull-request: https://github.com/SerenityOS/serenity/pull/3778
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue