diff options
author | rsc <devnull@localhost> | 2006-07-27 05:14:16 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-07-27 05:14:16 +0000 |
commit | a83ccf38d72b708bb7aa69416a9fe9b090e2e97f (patch) | |
tree | 22b8084acfba01e0de7a373fa8fbc079df905043 /src/cmd/9pfuse/fuse.c | |
parent | 143cdf575889feef82ed98a19df8761002d3895f (diff) | |
download | plan9port-a83ccf38d72b708bb7aa69416a9fe9b090e2e97f.tar.gz plan9port-a83ccf38d72b708bb7aa69416a9fe9b090e2e97f.tar.bz2 plan9port-a83ccf38d72b708bb7aa69416a9fe9b090e2e97f.zip |
wait for mount to complete before exiting
Diffstat (limited to 'src/cmd/9pfuse/fuse.c')
-rw-r--r-- | src/cmd/9pfuse/fuse.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cmd/9pfuse/fuse.c b/src/cmd/9pfuse/fuse.c index 5c071ab4..9918994d 100644 --- a/src/cmd/9pfuse/fuse.c +++ b/src/cmd/9pfuse/fuse.c @@ -763,7 +763,6 @@ mountfuse(char *mtpt) close(p[0]); fd = recvfd(p[1]); close(p[1]); - waitpid(); return fd; #elif defined(__FreeBSD__) int pid, fd; @@ -781,7 +780,6 @@ mountfuse(char *mtpt) fprint(2, "exec mount_fusefs: %r\n"); _exit(1); } - waitpid(); return fd; #else werrstr("cannot mount fuse on this system"); @@ -790,6 +788,12 @@ mountfuse(char *mtpt) } void +waitfuse(void) +{ + waitpid(); +} + +void unmountfuse(char *mtpt) { int pid; |