wait for mount to complete before exiting

This commit is contained in:
rsc 2006-07-27 05:14:16 +00:00
parent 143cdf5758
commit a83ccf38d7
3 changed files with 12 additions and 2 deletions

View file

@ -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);
}