Commit 6a74f9fd authored by Julius Athenstaedt's avatar Julius Athenstaedt Committed by Ramon Nou
Browse files

fix multithreading for older fuse version

parent 70df2cd5
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1126,9 +1126,13 @@ main(int argc, char* argv[]) {
        fuse_loop_cfg_destroy(config);
        config = NULL;
#else
        struct fuse_loop_config config;
        memset(&config, 0, sizeof(config));
        config.clone_fd = opts.clone_fd;
        config.max_idle_threads = opts.max_idle_threads;

        // for older fuse versions like on the ubuntu22
        ret = fuse_session_loop_mt(
                se, NULL); // second argument should be checked!!!
        ret = fuse_session_loop_mt(se, &config);
#endif
    }