mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
hurd: Restore destroying receive rights on sigreturn
Just subtracting a ref is making signal/tst-signal signal/tst-raise signal/tst-minsigstksz-5 htl/tst-raise1 fail.
This commit is contained in:
parent
0cee4aa92f
commit
6538a288be
1 changed files with 2 additions and 2 deletions
|
@ -102,8 +102,8 @@ __sigreturn (struct sigcontext *scp)
|
|||
reply port in use by the thread when interrupted. */
|
||||
reply_port = THREAD_GETMEM (THREAD_SELF, reply_port);
|
||||
THREAD_SETMEM (THREAD_SELF, reply_port, scp->sc_reply_port);
|
||||
__mach_port_mod_refs (__mach_task_self (), reply_port,
|
||||
MACH_PORT_RIGHT_RECEIVE, -1);
|
||||
if (MACH_PORT_VALID (reply_port))
|
||||
__mach_port_destroy (__mach_task_self (), reply_port);
|
||||
|
||||
if (scp->sc_fpused)
|
||||
/* Restore the FPU state. Mach conveniently stores the state
|
||||
|
|
Loading…
Add table
Reference in a new issue