Skip to content

Commit

Permalink
bugfix: abend mgmt in fuse_loop
Browse files Browse the repository at this point in the history
  • Loading branch information
rd235 committed Nov 25, 2024
1 parent 6569395 commit 81ab750
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vufuse/vufuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ void fuse_destroy(struct fuse *f)
int fuse_loop(struct fuse *f)
{
pthread_mutex_lock( &condition_mutex );
if (f == NULL) {
f = vu_get_ht_private_data();
f->inuse = FUSE_ABORT;
}
if (f->inuse != FUSE_ABORT)
f->inuse = 0;
pthread_cond_signal( &f->startloop );
Expand Down

0 comments on commit 81ab750

Please sign in to comment.