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
1 changed files with 1 additions and 0 deletions

View File

@ -168,6 +168,7 @@ void stop_thread( struct thread *thread )
if (!thread->attached) if (!thread->attached)
if (attach_thread( thread )) return; /* this will have stopped it */ if (attach_thread( thread )) return; /* this will have stopped it */
/* attached already, or attach failed -> send a signal */ /* attached already, or attach failed -> send a signal */
if (!thread->unix_pid) return;
kill( thread->unix_pid, SIGSTOP ); kill( thread->unix_pid, SIGSTOP );
if (thread->attached) wait4_thread( thread, SIGSTOP ); if (thread->attached) wait4_thread( thread, SIGSTOP );
} }