wait for mount to complete before exiting
This commit is contained in:
parent
143cdf5758
commit
a83ccf38d7
3 changed files with 12 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue