summaryrefslogtreecommitdiff
path: root/libports/end-rpc.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-03-29 20:23:38 +0000
committerMiles Bader <miles@gnu.org>1996-03-29 20:23:38 +0000
commit85f01be20d06193ad6a7f8ed9189a1f92eb90848 (patch)
tree675f59c8a7a46a27d71d418940084371f0aef8ef /libports/end-rpc.c
parent7009f2e4313b85d3d42bf9dc6f162bbec09dc8b0 (diff)
(ports_end_rpc): Acquire _PORTS_LOCK before calling _ports_remove_notified_rpc.
Diffstat (limited to 'libports/end-rpc.c')
-rw-r--r--libports/end-rpc.c5
1 files changed, 3 insertions, 2 deletions
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;