From 47bc0009f567cffd91ea4977847ba1f128024c6d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 10 Oct 2024 09:12:05 -0500 Subject: [PATCH] chdir to / in xvdaemon() so background process doesn't pin mount points. --- lib/xwrap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/xwrap.c b/lib/xwrap.c index d07f355a..aa036d4d 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -198,6 +198,7 @@ void xvdaemon(void) } // new session id, point fd 0-2 at /dev/null, detach from tty + chdir("/"); setsid(); close(0); xopen_stdio("/dev/null", O_RDWR); -- 2.39.5