mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Prevent applications from blocking SIGVGINT in the proxy threads.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2431
This commit is contained in:
parent
2b499cb838
commit
2a63d16c76
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user