summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-09 23:34:35 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-09 23:34:35 +0000
commit3c49302d2a80aa64d3a3a191253967baccac45b2 (patch)
tree24463f4561fb4a8fc4caddbe0f52143bb8a63f36
parent38081dee4c7adb8e3bf0a314537c62457d281475 (diff)
(init_users): Use new ports_create_port.
-rw-r--r--term/users.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/term/users.c b/term/users.c
index 04022080..4fbe0c52 100644
--- a/term/users.c
+++ b/term/users.c
@@ -78,8 +78,13 @@ struct protid_hook
void
init_users ()
{
- cttyid = ports_allocate_port (term_bucket, sizeof (struct port_info),
- cttyid_class);
+ errno = ports_create_port (term_bucket, sizeof (struct port_info),
+ cttyid_class, &cttyid);
+ if (errno)
+ {
+ perror ("Allocating cttyid");
+ exit (1);
+ }
mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE,
&async_icky_id);