Commit 7930d817 authored by Julius Athenstaedt's avatar Julius Athenstaedt
Browse files

fix multithreading for older fuse version

parent 846377f0
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -1126,9 +1126,13 @@ main(int argc, char* argv[]) {
        fuse_loop_cfg_destroy(config);
        fuse_loop_cfg_destroy(config);
        config = NULL;
        config = NULL;
#else
#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
        // for older fuse versions like on the ubuntu22
        ret = fuse_session_loop_mt(
        ret = fuse_session_loop_mt(se, &config);
                se, NULL); // second argument should be checked!!!
#endif
#endif
    }
    }