summaryrefslogtreecommitdiff
path: root/libports/reallocate-port.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-03-31 23:06:37 +0000
committerRoland McGrath <roland@gnu.org>2001-03-31 23:06:37 +0000
commit5b423a6848038a829658fe6e4753d1e5c8743cb3 (patch)
treea20e936d76cf975008cb4dbbe8eded50a74b5c5b /libports/reallocate-port.c
parentbe5d0de057208f22279d4b44c1fcdfbd0d173e51 (diff)
2001-03-29 Neal H Walfield <neal@cs.uml.edu>
* reallocate-port.c (ports_reallocate_port): Assert return from mach_port_move_member. * transfer-right.c (ports_transfer_right): Likewise.
Diffstat (limited to 'libports/reallocate-port.c')
-rw-r--r--libports/reallocate-port.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libports/reallocate-port.c b/libports/reallocate-port.c
index 35dd4883..bd1b1893 100644
--- a/libports/reallocate-port.c
+++ b/libports/reallocate-port.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 2001 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
This file is part of the GNU Hurd.
@@ -52,8 +52,9 @@ ports_reallocate_port (void *portstruct)
ihash_add (pi->bucket->htable, pi->port_right, pi, &pi->hentry);
mutex_unlock (&_ports_lock);
- mach_port_move_member (mach_task_self (), pi->port_right,
- pi->bucket->portset);
+ err = mach_port_move_member (mach_task_self (), pi->port_right,
+ pi->bucket->portset);
+ assert_perror (err);
if (dropref)
ports_port_deref (pi);