From ad1abf3f2e15d9d23d0a2c60aec6a011762ccfa6 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Fri, 17 Mar 2023 09:04:28 +0000 Subject: Do not daemonize to early fuse_session_mount() may print errors to stderr, if we daemonize before that than these are lost. --- example/passthrough_hp.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/example/passthrough_hp.cc b/example/passthrough_hp.cc index a0480e5..53efd9f 100644 --- a/example/passthrough_hp.cc +++ b/example/passthrough_hp.cc @@ -1288,8 +1288,6 @@ int main(int argc, char *argv[]) { // Don't apply umask, use modes exactly as specified umask(0); - fuse_daemonize(fs.foreground); - // Mount and run main loop loop_config = fuse_loop_cfg_create(); @@ -1298,6 +1296,9 @@ int main(int argc, char *argv[]) { if (fuse_session_mount(se, argv[2]) != 0) goto err_out3; + + fuse_daemonize(fs.foreground); + if (options.count("single")) ret = fuse_session_loop(se); else -- cgit v1.2.1