From 2a63d16c7655a6d102fc2333c73b54da18c0eaa1 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 22 Jun 2004 08:43:29 +0000 Subject: [PATCH] Prevent applications from blocking SIGVGINT in the proxy threads. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2431 --- coregrind/vg_proxylwp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/coregrind/vg_proxylwp.c b/coregrind/vg_proxylwp.c index 4775b40a3..b66b8e577 100644 --- a/coregrind/vg_proxylwp.c +++ b/coregrind/vg_proxylwp.c @@ -681,14 +681,16 @@ static Int proxylwp(void *v) want while running the handler. */ vg_assert(px->state == PXS_SigACK); appsigmask = req.sigmask; - VG_(ksigdelset)(&appsigmask, VKI_SIGVGKILL); /* but allow SIGVGKILL to interrupt */ + VG_(ksigdelset)(&appsigmask, VKI_SIGVGKILL); /* but allow SIGVGKILL */ + VG_(ksigdelset)(&appsigmask, VKI_SIGVGINT); /* and SIGVGINT to interrupt */ px->state = PXS_WaitReq; reply.req = PX_BAD; /* don't reply */ break; case PX_SetSigmask: appsigmask = req.sigmask; - VG_(ksigdelset)(&appsigmask, VKI_SIGVGKILL); /* but allow SIGVGKILL to interrupt */ + VG_(ksigdelset)(&appsigmask, VKI_SIGVGKILL); /* but allow SIGVGKILL */ + VG_(ksigdelset)(&appsigmask, VKI_SIGVGINT); /* and SIGVGINT to interrupt */ vg_assert(px->state == PXS_WaitReq || px->state == PXS_SigACK);