hrev53353 adds 1 changeset to branch 'master'
old head: b18e88a384049844ded532a6c294cfbfe3d8b665
new head: 925c3a133b29d8f0f748a22189dea50e169d96ab
overview:
https://git.haiku-os.org/haiku/log/?qt=range&q=925c3a133b29+%5Eb18e88a38404
----------------------------------------------------------------------------
925c3a133b29: kernel/thread: Check the proper field to determine if the thread
is blocked.
Fixes #15234.
[ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev53353
Commit: 925c3a133b29d8f0f748a22189dea50e169d96ab
URL: https://git.haiku-os.org/haiku/commit/?id=925c3a133b29
Author: Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date: Thu Aug 8 03:52:03 2019 UTC
Ticket: https://dev.haiku-os.org/ticket/15234
----------------------------------------------------------------------------
1 file changed, 1 insertion(+), 1 deletion(-)
src/system/kernel/thread.cpp | 2 +-
----------------------------------------------------------------------------
diff --git a/src/system/kernel/thread.cpp b/src/system/kernel/thread.cpp
index bcbde99b96..a893434374 100644
--- a/src/system/kernel/thread.cpp
+++ b/src/system/kernel/thread.cpp
@@ -2987,7 +2987,7 @@ user_unblock_thread(thread_id threadID, status_t status)
// Even if the user_thread->wait_status was > 0, it may be the
// case that this thread is actually blocked on something else.
- if (thread->state == B_THREAD_WAITING
+ if (thread->wait.status > 0
&& thread->wait.type == THREAD_BLOCK_TYPE_USER)
{
thread_unblock_locked(thread, status);
}