+2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
+ Pedro Alves <palves@redhat.com>
+
+ * linux-nat.c (linux_nat_detach): Don't unregister from the event
+ loop.
+
2012-07-16 Tom Tromey <tromey@redhat.com>
* jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
pid = GET_PID (inferior_ptid);
- if (target_can_async_p ())
- linux_nat_async (NULL, 0);
+ /* Don't unregister from the event loop, as there may be other
+ inferiors running. */
/* Stop all threads before detaching. ptrace requires that the
thread is stopped to sucessfully detach. */
the current fork, and context-switch to the first
available. */
linux_fork_detach (args, from_tty);
-
- if (non_stop && target_can_async_p ())
- target_async (inferior_event_handler, 0);
}
else
linux_ops->to_detach (ops, args, from_tty);