adding missing call to restore_child_signals_mask.
+2011-05-09 Doug Evans <dje@google.com>
+
+ * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
+ adding missing call to restore_child_signals_mask.
+
2011-05-09 Pedro Alves <pedro@codesourcery.com>
* inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
status = linux_nat_post_attach_wait (ptid, 0, &cloned, &signalled);
if (!WIFSTOPPED (status))
- return -1;
+ {
+ restore_child_signals_mask (&prev_mask);
+ return -1;
+ }
lp = add_lwp (ptid);
lp->stopped = 1;