From: Philippe Waroquiers Date: Tue, 4 Nov 2014 20:28:36 +0000 (+0000) Subject: Unmask all signals in vgdb, as the process that launches vgdb X-Git-Tag: svn/VALGRIND_3_11_0~857 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=559955c15d90ed0c56bc7eabb52b3a3dd41ce063;p=thirdparty%2Fvalgrind.git Unmask all signals in vgdb, as the process that launches vgdb might have masked some. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14691 --- diff --git a/coregrind/vgdb.c b/coregrind/vgdb.c index 8aa70f6440..82639cc9b7 100644 --- a/coregrind/vgdb.c +++ b/coregrind/vgdb.c @@ -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. */