aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2023-06-29 13:11:11 +0100
committerNikolaus Rath <Nikolaus@rath.org>2023-06-29 13:11:11 +0100
commit756726800683b22b9c4eb75bf56bcf30cb50cca1 (patch)
treecb4720c62857256f84d6cf2886af4b722bca9dc1 /include
parent010d820131adc2059d3b2516991ebaa16dc0bdd9 (diff)
downloadlibfuse-756726800683b22b9c4eb75bf56bcf30cb50cca1.tar.gz
Clarify behavior of fuse_session_exit().
Diffstat (limited to 'include')
-rw-r--r--include/fuse_lowlevel.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index 9142b1c..b42447e 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -2112,9 +2112,12 @@ int fuse_session_loop(struct fuse_session *se);
/**
* Flag a session as terminated.
*
- * This function is invoked by the POSIX signal handlers, when
- * registered using fuse_set_signal_handlers(). It will cause any
- * running event loops to terminate on the next opportunity.
+ * This will cause any running event loops to terminate on the next opportunity. If this function is
+ * called by a thread that is not a FUSE worker thread, the next
+ * opportunity will be when FUSE a request is received (which may be far in the future if the
+ * filesystem is not currently being used by any clients). One way to avoid this delay is to
+ * afterwards sent a signal to the main thread (if fuse_set_signal_handlers() is used, SIGPIPE
+ * will cause the main thread to wake-up but otherwise be ignored).
*
* @param se the session
*/