aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pfuse/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/9pfuse/main.c')
-rw-r--r--src/cmd/9pfuse/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/9pfuse/main.c b/src/cmd/9pfuse/main.c
index 5a2ef8f6..db79a5ea 100644
--- a/src/cmd/9pfuse/main.c
+++ b/src/cmd/9pfuse/main.c
@@ -97,6 +97,11 @@ threadmain(int argc, char **argv)
sendp(fusechan, nil); /* sync */
proccreate(fusereader, nil, STACK);
+ /*
+ * Now that we're serving FUSE, we can wait
+ * for the mount to finish and exit back to the user.
+ */
+ waitfuse();
threadexits(0);
}