Skip to content
Snippets Groups Projects
Commit 3dddc114 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Fall back to kill() if the kernel doesn't support tkill().

parent d6da1f33
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,11 @@ int send_thread_signal( struct thread *thread, int sig )
if (thread->unix_pid != -1)
{
if (thread->unix_tid != -1) ret = tkill( thread->unix_tid, sig );
if (thread->unix_tid != -1)
{
ret = tkill( thread->unix_tid, sig );
if (ret == -1 && errno == ENOSYS) ret = kill( thread->unix_pid, sig );
}
else ret = kill( thread->unix_pid, sig );
if (ret == -1 && errno == ESRCH) /* thread got killed */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment