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

@ -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");
@ -789,6 +787,12 @@ mountfuse(char *mtpt)
#endif
}
void
waitfuse(void)
{
waitpid();
}
void
unmountfuse(char *mtpt)
{