summaryrefslogtreecommitdiff
path: root/libnetfs/init-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs/init-init.c')
-rw-r--r--libnetfs/init-init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libnetfs/init-init.c b/libnetfs/init-init.c
index 36983790..411430f0 100644
--- a/libnetfs/init-init.c
+++ b/libnetfs/init-init.c
@@ -28,6 +28,8 @@ struct port_bucket *netfs_port_bucket = 0;
struct port_class *netfs_protid_class = 0;
struct port_class *netfs_control_class = 0;
auth_t netfs_auth_server_port = 0;
+mach_port_t netfs_fsys_identity;
+
void
netfs_init ()
@@ -36,4 +38,6 @@ netfs_init ()
netfs_control_class = ports_create_class (0, 0);
netfs_port_bucket = ports_create_bucket ();
netfs_auth_server_port = getauth ();
+ mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE,
+ &netfs_fsys_identity);
}