From: Tom Hughes Date: Tue, 22 Jun 2004 08:43:29 +0000 (+0000) Subject: Prevent applications from blocking SIGVGINT in the proxy threads. X-Git-Tag: svn/VALGRIND_2_1_2~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a63d16c7655a6d102fc2333c73b54da18c0eaa1;p=thirdparty%2Fvalgrind.git Prevent applications from blocking SIGVGINT in the proxy threads. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2431 --- diff --git a/coregrind/vg_proxylwp.c b/coregrind/vg_proxylwp.c index 4775b40a3d..b66b8e577c 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);