From 3c49302d2a80aa64d3a3a191253967baccac45b2 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 9 May 1996 23:34:35 +0000 Subject: (init_users): Use new ports_create_port. --- term/users.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'term/users.c') 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); -- cgit v1.2.3