gdb
[deliverable/binutils-gdb.git] / gdb / linux-nat.c
index 9442088c3334b967777c4f0b840c1f119d65d99a..641a619727cce8ba78d616294c9367f38751685d 100644 (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;
This page took 0.023937 seconds and 4 git commands to generate.