Skip to content

Commit

Permalink
Fix RPC breakage when longjumping from signal handler
Browse files Browse the repository at this point in the history
	* hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
	of interrupted RPC instead of restoring it.
  • Loading branch information
Samuel Thibault committed Nov 25, 2015
1 parent e02cabe commit fb30403
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2015-11-25 Samuel Thibault <samuel.thibault@ens-lyon.org>

* hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
of interrupted RPC instead of restoring it.

2015-11-24 Joseph Myers <joseph@codesourcery.com>

* stdlib/strtod_nan.c: New file.
3 changes: 2 additions & 1 deletion hurd/sigunwind.c
Original file line number Diff line number Diff line change
@@ -50,7 +50,8 @@ _hurdsig_longjmp_from_handler (void *data, jmp_buf env, int val)
*reply_port = MACH_PORT_DEAD;
__mach_port_destroy (__mach_task_self (), port);
}
*reply_port = scp->sc_reply_port;
if (scp->sc_reply_port)
__mach_port_destroy (__mach_task_self (), scp->sc_reply_port);
}

__spin_lock (&ss->lock);

0 comments on commit fb30403

Please sign in to comment.