Don't chdir("/"). Root may not be writable to daemon.

Only user can select appropriate run directory.  Best left to user.
This commit is contained in:
Kurt Zeilenga 2000-02-08 04:22:31 +00:00
parent 36b0423311
commit 0ba3d75913

View File

@ -100,7 +100,9 @@ lutil_detach( int debug, int do_close )
}
}
#ifdef CHDIR_TO_ROOT
(void) chdir( "/" );
#endif
#ifdef HAVE_SETSID
(void) setsid();