]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Unmask all signals in vgdb, as the process that launches vgdb
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 4 Nov 2014 20:28:36 +0000 (20:28 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 4 Nov 2014 20:28:36 +0000 (20:28 +0000)
might have masked some.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14691

coregrind/vgdb.c

index 8aa70f6440ce3d059fdfac58a18b76f553ec3241..82639cc9b713e088dff64704c3ca5f8ac19ec4c9 100644 (file)
@@ -751,6 +751,11 @@ void install_handlers(void)
       to cleanup.  */
    if (sigaction (SIGALRM, &action, &oldaction) != 0)
       XERROR (errno, "vgdb error sigaction SIGALRM\n");
+
+   /* unmask all signals, in case the process that launched vgdb
+      masked some. */
+   if (sigprocmask (SIG_SETMASK, &action.sa_mask, NULL) != 0)
+      XERROR (errno, "vgdb error sigprocmask");
 }
 
 /* close the FIFOs provided connections, terminate the invoker thread.  */