aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pfuse/main.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-07-27 05:14:16 +0000
committerrsc <devnull@localhost>2006-07-27 05:14:16 +0000
commita83ccf38d72b708bb7aa69416a9fe9b090e2e97f (patch)
tree22b8084acfba01e0de7a373fa8fbc079df905043 /src/cmd/9pfuse/main.c
parent143cdf575889feef82ed98a19df8761002d3895f (diff)
downloadplan9port-a83ccf38d72b708bb7aa69416a9fe9b090e2e97f.tar.gz
plan9port-a83ccf38d72b708bb7aa69416a9fe9b090e2e97f.tar.bz2
plan9port-a83ccf38d72b708bb7aa69416a9fe9b090e2e97f.zip
wait for mount to complete before exiting
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);
}