summaryrefslogtreecommitdiff
path: root/proc/main.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-17 10:31:34 +0000
committerRoland McGrath <roland@gnu.org>2000-03-17 10:31:34 +0000
commit13808418c81c3ea6c1f39b4b2bf6af8c86367e2a (patch)
tree83acad74dc0e2e4d7cee9c8051087bb2c3ce404c /proc/main.c
parentdf988e23ee71e8b6b4446f8150f6908f9877002f (diff)
2000-03-17 Roland McGrath <roland@baalperazim.frob.com>
* main.c (main): Use ports_get_send_right.
Diffstat (limited to 'proc/main.c')
-rw-r--r--proc/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/proc/main.c b/proc/main.c
index 6d74e1de..aa1c0c30 100644
--- a/proc/main.c
+++ b/proc/main.c
@@ -87,9 +87,7 @@ main (int argc, char **argv, char **envp)
self_proc = allocate_proc (mach_task_self ());
complete_proc (self_proc, 0);
- startup_port = ports_get_right (startup_proc);
- mach_port_insert_right (mach_task_self (), startup_port,
- startup_port, MACH_MSG_TYPE_MAKE_SEND);
+ startup_port = ports_get_send_right (startup_proc);
err = startup_procinit (boot, startup_port, &startup_proc->p_task,
&authserver, &master_host_port, &master_device_port);
assert_perror (err);