* linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,

adding missing call to restore_child_signals_mask.
This commit is contained in:
Doug Evans 2011-05-09 18:43:56 +00:00
parent b44f3f638e
commit 673c2bbeab
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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'

View File

@ -1476,7 +1476,10 @@ lin_lwp_attach_lwp (ptid_t ptid)
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;