diff options
author | Miles Bader <miles@gnu.org> | 1996-03-29 20:23:38 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-03-29 20:23:38 +0000 |
commit | 85f01be20d06193ad6a7f8ed9189a1f92eb90848 (patch) | |
tree | 675f59c8a7a46a27d71d418940084371f0aef8ef /libports | |
parent | 7009f2e4313b85d3d42bf9dc6f162bbec09dc8b0 (diff) |
(ports_end_rpc): Acquire _PORTS_LOCK before calling _ports_remove_notified_rpc.
Diffstat (limited to 'libports')
-rw-r--r-- | libports/end-rpc.c | 5 |
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; |