From 85f01be20d06193ad6a7f8ed9189a1f92eb90848 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 29 Mar 1996 20:23:38 +0000 Subject: (ports_end_rpc): Acquire _PORTS_LOCK before calling _ports_remove_notified_rpc. --- libports/end-rpc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libports') diff --git a/libports/end-rpc.c b/libports/end-rpc.c index cd0aa2d4..d4d46e62 100644 --- a/libports/end-rpc.c +++ b/libports/end-rpc.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by Michael I. Bushnell. This file is part of the GNU Hurd. @@ -26,10 +26,11 @@ ports_end_rpc (void *port, struct rpc_info *info) { struct port_info *pi = port; + mutex_lock (&_ports_lock); + if (info->notifies) _ports_remove_notified_rpc (info); - mutex_lock (&_ports_lock); *info->prevp = info->next; if (info->next) info->next->prevp = info->prevp; -- cgit v1.2.3