mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-19 16:16:48 +00:00
The signal handler reads the global session pointer from an async- signal context while another thread installs/removes the session via set/remove_signal_handlers. Use std::atomic<fuse_session*> with acquire/release ordering so the handler either sees NULL or a fully published session, never a torn pointer.