aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <miklos@szeredi.hu>2004-09-16 08:43:24 +0000
committerGravatar Miklos Szeredi <miklos@szeredi.hu>2004-09-16 08:43:24 +0000
commitba1e2dccca37a2ae3dc6e8c5ebb881ba0c041fba (patch)
treed22d92140c340b954659a2431be8190bf5efe8f9
parentb2cf9561fe5c0615aff91c29d89849c4bf6d8131 (diff)
fix
-rw-r--r--lib/helper.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/helper.c b/lib/helper.c
index 70c4bd8..b9e8150 100644
--- a/lib/helper.c
+++ b/lib/helper.c
@@ -93,6 +93,7 @@ static int fuse_do(int fuse_fd, const char *opts, int multithreaded,
int background, const struct fuse_operations *op)
{
int pid;
+ int res;
fuse = fuse_new(fuse_fd, opts, op);
if (fuse == NULL)
@@ -110,12 +111,15 @@ static int fuse_do(int fuse_fd, const char *opts, int multithreaded,
set_signal_handlers();
if (multithreaded)
- fuse_loop_mt(fuse);
+ res = fuse_loop_mt(fuse);
else
- fuse_loop(fuse);
+ res = fuse_loop(fuse);
fuse_destroy(fuse);
+ if (res == -1)
+ return 1;
+
return 0;
}