oops - omitted from previous delta
[deliverable/binutils-gdb.git] / gdb / infptrace.c
index e75ea4c41f2ed65b688bda54547f680608cdc381..a142080cf8c206834683a5ed8dda5ff2d6705338 100644 (file)
@@ -301,7 +301,7 @@ detach (int signal)
   errno = 0;
   ptrace (PT_DETACH, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) 1,
           signal);
-  if (errno)
+  if (errno && errno != ESRCH)
     perror_with_name ("ptrace");
   attach_flag = 0;
 }
This page took 0.028396 seconds and 4 git commands to generate.