Commit 8ba769f4 authored by Alexandre Julliard's avatar Alexandre Julliard

Check unix_pid again after attach.

parent 93c3faef
......@@ -168,6 +168,7 @@ void stop_thread( struct thread *thread )
if (!thread->attached)
if (attach_thread( thread )) return; /* this will have stopped it */
/* attached already, or attach failed -> send a signal */
if (!thread->unix_pid) return;
kill( thread->unix_pid, SIGSTOP );
if (thread->attached) wait4_thread( thread, SIGSTOP );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment