diff options
Diffstat (limited to 'term/users.c')
-rw-r--r-- | term/users.c | 9 |
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); |