Check unix_pid again after attach.

diff --git a/server/ptrace.c b/server/ptrace.c
index a36bed7..8eaaa6d 100644
--- a/server/ptrace.c
+++ b/server/ptrace.c
@@ -168,6 +168,7 @@
     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 );
 }