Skip to content

Commit d2e7cf3

Browse files
author
virco
committed
fix
1 parent aeba469 commit d2e7cf3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pfs.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3095,16 +3095,17 @@ static void psync_fs_init_once(){
30953095
}
30963096

30973097
static void psync_fuse_thread(){
3098+
int fr;
30983099
pthread_mutex_lock(&start_mutex);
30993100
if (!initonce){
31003101
psync_fs_init_once();
31013102
initonce=1;
31023103
}
31033104
pthread_mutex_unlock(&start_mutex);
31043105
debug(D_NOTICE, "running fuse_loop_mt");
3105-
fuse_loop_mt(psync_fuse);
3106+
fr=fuse_loop_mt(psync_fuse);
3107+
debug(D_NOTICE, "fuse_loop_mt exited with code %d, running fuse_destroy", fr);
31063108
pthread_mutex_lock(&start_mutex);
3107-
debug(D_NOTICE, "fuse_loop_mt exited, running fuse_destroy");
31083109
fuse_destroy(psync_fuse);
31093110
debug(D_NOTICE, "fuse_destroy exited");
31103111
/*#if defined(P_OS_MACOSX)

0 commit comments

Comments
 (0)