Don't crash if send_thread_wakeup() fails.
This commit is contained in:
parent
b7e8a9e7fa
commit
d66130ac9d
|
@ -440,7 +440,8 @@ static int wake_thread( struct thread *thread )
|
|||
if (debug_level) fprintf( stderr, "%08x: *wakeup* signaled=%d cookie=%p\n",
|
||||
(unsigned int)thread, signaled, cookie );
|
||||
end_wait( thread );
|
||||
send_thread_wakeup( thread, cookie, signaled );
|
||||
if (send_thread_wakeup( thread, cookie, signaled ) == -1) /* error */
|
||||
break;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue