aboutsummaryrefslogtreecommitdiff
path: root/lib/fuse_loop_mt.c
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <mszeredi@suse.cz>2011-02-02 12:18:38 +0100
committerGravatar Miklos Szeredi <mszeredi@suse.cz>2011-02-02 12:18:38 +0100
commit71b1c37a66b187404f2099ddbfb0d3912e65b821 (patch)
tree84d867fa8e1b731cf1a1f44c2ee9c0d91b7a4ccf /lib/fuse_loop_mt.c
parentcbd3a2a84068aae6e3fe32939d88470d712dbf47 (diff)
libfuse: fuse_session_loop_mt() shouldn't pause when exiting worker threads
In fuse_session_loop_mt() don't pause when exiting the worker threads. The pause() was added in 2.2.1 to prevent segfault on pthread_cancel() on an exited, detached thread. Now worker threads are not detached and pthread_cancel() should work fine even after the thread exited. Reported by Boris Protopopov
Diffstat (limited to 'lib/fuse_loop_mt.c')
-rw-r--r--lib/fuse_loop_mt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/fuse_loop_mt.c b/lib/fuse_loop_mt.c
index a76713b..694f98c 100644
--- a/lib/fuse_loop_mt.c
+++ b/lib/fuse_loop_mt.c
@@ -133,8 +133,6 @@ static void *fuse_do_work(void *data)
}
sem_post(&mt->finish);
- pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
- pause();
return NULL;
}