From 9027298494805ac696540a7be0ebd1c0d621bc59 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 14 May 1996 12:56:33 +0000 Subject: *** empty log message *** --- libports/claim-right.c | 5 ++++- pfinet/devices.c | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/libports/claim-right.c b/libports/claim-right.c index 980210a3..2ddb3aaa 100644 --- a/libports/claim-right.c +++ b/libports/claim-right.c @@ -34,13 +34,16 @@ ports_claim_right (void *portstruct) mutex_lock (&_ports_lock); ihash_locp_remove (pi->bucket->htable, pi->hentry); + mach_port_move_member (mach_task_self (), ret, MACH_PORT_NULL); pi->port_right = MACH_PORT_NULL; if (pi->flags & PORT_HAS_SENDRIGHTS) { pi->flags &= ~PORT_HAS_SENDRIGHTS; + mutex_unlock (&_ports_lock); ports_port_deref (pi); } - mutex_unlock (&_ports_lock); + else + mutex_unlock (&_ports_lock); } else ret = MACH_PORT_NULL; diff --git a/pfinet/devices.c b/pfinet/devices.c index 371bbdee..ac37cc03 100644 --- a/pfinet/devices.c +++ b/pfinet/devices.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, p/BSG. This file is part of the GNU Hurd. @@ -42,6 +42,12 @@ init_devices (void) dev_base = 0; } +void +add_device (struct device *dev) +{ + dev->next = dev_base; + dev_base = dev; +} -- cgit v1.2.3