From 220d2337c90ba1f22f626436fb56bcd478175ecd Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 21 Nov 1995 15:10:49 +0000 Subject: (ports_manage_port_operations_multithread): Actually, just use hurd_thread_cancel and then begin the RPC normally. --- libports/manage-multithread.c | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'libports/manage-multithread.c') diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c index 9843b9c0..2013de96 100644 --- a/libports/manage-multithread.c +++ b/libports/manage-multithread.c @@ -23,16 +23,6 @@ #include #include -/* Fill in a cancellation error for the incoming RPC in inp - so that it will be retried. For now, just return junk. XXX */ -static void -cancel_rpc (mach_msg_header_t *inp, - mach_msg_header_t *outp) -{ -} - - - void ports_manage_port_operations_multithread (struct port_bucket *bucket, ports_demuxer_type demuxer, @@ -78,16 +68,9 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, ports_begin_rpc (pi, &link); mutex_lock (&_ports_lock); if (inp->msgh_seqno < pi->cancel_threshhold) - { - cancel_rpc (inp, outp); - status = 1; - mutex_unlock (&_ports_lock); - } - else - { - mutex_unlock (&_ports_lock); - status = demuxer (inp, outp); - } + hurd_thread_cancel (link.thread); + mutex_unlock (&_ports_lock); + status = demuxer (inp, outp); ports_end_rpc (pi, &link); ports_port_deref (pi); } -- cgit v1.2.3