summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libports/create-bucket.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libports/create-bucket.c b/libports/create-bucket.c
index 1c3346e4..d523b788 100644
--- a/libports/create-bucket.c
+++ b/libports/create-bucket.c
@@ -1,5 +1,5 @@
/* Create a port bucket
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1997 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
This file is part of the GNU Hurd.
@@ -31,17 +31,20 @@ ports_create_bucket ()
ret = malloc (sizeof (struct port_bucket));
assert (ret);
+
err = mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_PORT_SET,
&ret->portset);
assert_perror (err);
+
err = ihash_create (&ret->htable);
assert_perror (err);
+ ret->rpcs = ret->flags = ret->count = 0;
+
mutex_lock (&_ports_lock);
ret->next = _ports_all_buckets;
_ports_all_buckets = ret;
mutex_unlock (&_ports_lock);
+
return ret;
}
-
-