summaryrefslogtreecommitdiff
path: root/proc/main.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-08-18 14:40:50 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-08-18 14:40:50 +0000
commitbdc4e2ba7a987675349ba5d5a0fb9d2a50b57a6e (patch)
treed4c2aabcb89b6b16aabd8b33a7ed072511be27eb /proc/main.c
parent64ad2e4f94c820647cdfa355805ffdaea74d34bb (diff)
entered into RCS
Diffstat (limited to 'proc/main.c')
-rw-r--r--proc/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proc/main.c b/proc/main.c
index 381bee9f..f939518e 100644
--- a/proc/main.c
+++ b/proc/main.c
@@ -50,7 +50,6 @@ int
main (int argc, char **argv, char **envp)
{
mach_port_t boot;
- mach_port_t authhandle;
error_t err;
mach_port_t pset, psetcntl;
@@ -72,11 +71,12 @@ main (int argc, char **argv, char **envp)
mach_port_insert_right (mach_task_self (), startup_proc->p_reqport,
startup_proc->p_reqport, MACH_MSG_TYPE_MAKE_SEND);
err = startup_procinit (boot, startup_proc->p_reqport, &startup_proc->p_task,
- &authhandle, &master_host_port, &master_device_port);
+ &authserver, &master_host_port, &master_device_port);
assert (!err);
mach_port_deallocate (mach_task_self (), startup_proc->p_reqport);
- _hurd_port_set (&_hurd_ports[INIT_PORT_AUTH], authhandle);
+ mach_port_mod_refs (mach_task_self (), authserver, MACH_PORT_RIGHT_SEND, 1);
+ _hurd_port_set (&_hurd_ports[INIT_PORT_AUTH], authserver);
mach_port_deallocate (mach_task_self (), boot);
add_proc_to_hash (self_proc);