From 8ba769f45f6f81b777abf5b38666f2f8dcffc187 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 12 Jan 2002 21:16:33 +0000 Subject: [PATCH] Check unix_pid again after attach. --- server/ptrace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server/ptrace.c b/server/ptrace.c index a36bed7f762..8eaaa6d4e4d 100644 --- a/server/ptrace.c +++ b/server/ptrace.c @@ -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 ); }