]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Prevent applications from blocking SIGVGINT in the proxy threads.
authorTom Hughes <tom@compton.nu>
Tue, 22 Jun 2004 08:43:29 +0000 (08:43 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 22 Jun 2004 08:43:29 +0000 (08:43 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2431

coregrind/vg_proxylwp.c

index 4775b40a3ddb298a185ccbc78629cd33ffb14d5e..b66b8e577c3b578804e42a3fa33f0818f2b3012f 100644 (file)
@@ -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);