From da8721d9ffd091313de41ccf4a8e86cb15b13ce2 Mon Sep 17 00:00:00 2001 From: des Date: Thu, 1 Nov 2007 21:52:34 +0000 Subject: [PATCH] Don't rely on non-portable git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2224 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvarnishcompat/daemon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/varnish-cache/lib/libvarnishcompat/daemon.c b/varnish-cache/lib/libvarnishcompat/daemon.c index f571d199..a1c5f3b4 100644 --- a/varnish-cache/lib/libvarnishcompat/daemon.c +++ b/varnish-cache/lib/libvarnishcompat/daemon.c @@ -35,7 +35,6 @@ #include #include -#include #include #include #include @@ -79,7 +78,7 @@ daemon(int nochdir, int noclose) if (!nochdir) (void)chdir("/"); - if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { + if (!noclose && (fd = open("/dev/null", O_RDWR, 0)) != -1) { (void)dup2(fd, STDIN_FILENO); (void)dup2(fd, STDOUT_FILENO); (void)dup2(fd, STDERR_FILENO); -- 2.39.5