summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proc/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/proc/main.c b/proc/main.c
index 792be5c6..381bee9f 100644
--- a/proc/main.c
+++ b/proc/main.c
@@ -61,6 +61,10 @@ main (int argc, char **argv, char **envp)
mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_PORT_SET,
&request_portset);
+ mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE,
+ &generic_port);
+ mach_port_move_member (mach_task_self (), generic_port, request_portset);
+
/* new_proc depends on these assignments which must occur in this order. */
self_proc = new_proc (mach_task_self ()); /* proc 0 is the procserver */
startup_proc = new_proc (MACH_PORT_NULL); /* proc 1 is init */