aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mount_bsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mount_bsd.c b/lib/mount_bsd.c
index bd95a76..28a9ae5 100644
--- a/lib/mount_bsd.c
+++ b/lib/mount_bsd.c
@@ -187,7 +187,7 @@ mount:
if (pid == 0) {
const char *argv[32];
int a = 0;
- int ret = -1;
+ int ret = -1;
if (! fdnam)
{
@@ -214,6 +214,7 @@ mount:
_exit(EXIT_FAILURE);
}
+ waitpid(pid, &status, 0);
_exit(EXIT_SUCCESS);
}