Check unix_pid again after attach.

This commit is contained in:
Alexandre Julliard 2002-01-12 21:16:33 +00:00
parent 93c3faef94
commit 8ba769f45f

View file

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