From a2fb1c0f0b25b608d20d7b5f67cddb4d7e4a9798 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 24 Aug 1995 19:34:25 +0000 Subject: (ports_interrupt_rpc): Don't attempt to cancel ourselves. --- libports/interrupt-rpcs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libports') diff --git a/libports/interrupt-rpcs.c b/libports/interrupt-rpcs.c index 0be2ffbe..98fad8be 100644 --- a/libports/interrupt-rpcs.c +++ b/libports/interrupt-rpcs.c @@ -27,11 +27,13 @@ ports_interrupt_rpc (void *portstruct) { struct port_info *pi = portstruct; struct rpc_info *rpc; + mach_port_t self = mach_thread_self (); mutex_lock (&_ports_lock); for (rpc = pi->current_rpcs; rpc; rpc = rpc->next) - hurd_thread_cancel (rpc->thread); + if (rpc->thread != mach_thread_self ()) + hurd_thread_cancel (rpc->thread); mutex_unlock (&_ports_lock); } -- cgit v1.2.3