+2008-12-12 Doug Evans <dje@google.com>
+
+ * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
+
2008-12-09 Doug Evans <dje@google.com>
* linux-low.h (struct process_info): Delete member tid, unused.
static int linux_wait_for_event (struct thread_info *child);
static int check_removed_breakpoint (struct process_info *event_child);
static void *add_process (unsigned long pid);
+static int my_waitpid (int pid, int *status, int flags);
struct pending_signals
{
/* The new child has a pending SIGSTOP. We can't affect it until it
hits the SIGSTOP, but we're already attached. */
- do {
- ret = waitpid (new_pid, &status, __WALL);
- } while (ret == -1 && errno == EINTR);
+ ret = my_waitpid (new_pid, &status, __WALL);
if (ret == -1)
perror_with_name ("waiting for new child");