From 908b92d7ff4ad571963b71cf16518e7493571770 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 4 Sep 2002 14:11:19 +0000 Subject: Sunil Shetye's re-exec patch. svn path=/trunk/; revision=3695 --- daemon.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'daemon.c') diff --git a/daemon.c b/daemon.c index 220d0d0c..a0b709d3 100644 --- a/daemon.c +++ b/daemon.c @@ -252,8 +252,10 @@ nottyDetach: return(PS_IOERR); } +#ifdef HAVE_GETCWD /* move to root directory, so we don't prevent filesystem unmounts */ chdir("/"); +#endif /* set our umask to something reasonable (we hope) */ #if defined(DEF_UMASK) -- cgit v1.2.3