Don't crash if send_thread_wakeup() fails.

oldstable
Andreas Mohr 2001-08-07 19:31:43 +00:00 committed by Alexandre Julliard
parent b7e8a9e7fa
commit d66130ac9d
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}