diff --git a/libraries/liblutil/detach.c b/libraries/liblutil/detach.c index 924982d635..88ef003ca2 100644 --- a/libraries/liblutil/detach.c +++ b/libraries/liblutil/detach.c @@ -100,7 +100,9 @@ lutil_detach( int debug, int do_close ) } } +#ifdef CHDIR_TO_ROOT (void) chdir( "/" ); +#endif #ifdef HAVE_SETSID (void) setsid();