|
From: <sv...@va...> - 2014-11-04 20:28:43
|
Author: philippe
Date: Tue Nov 4 20:28:36 2014
New Revision: 14691
Log:
Unmask all signals in vgdb, as the process that launches vgdb
might have masked some.
Modified:
trunk/coregrind/vgdb.c
Modified: trunk/coregrind/vgdb.c
==============================================================================
--- trunk/coregrind/vgdb.c (original)
+++ trunk/coregrind/vgdb.c Tue Nov 4 20:28:36 2014
@@ -751,6 +751,11 @@
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. */
|