Changes to support building on solaris, irix, and darwin. Also

removed test for working fork (AC_FORK).
This commit is contained in:
crs
2002-12-25 10:35:59 +00:00
parent de1fadc027
commit 9567a970a8
9 changed files with 3297 additions and 307 deletions

View File

@@ -55,7 +55,6 @@ CUnixPlatform::uninstallDaemon(const char*, bool)
int
CUnixPlatform::daemonize(const char* name, DaemonFunc func)
{
#if HAVE_WORKING_FORK
// fork so shell thinks we're done and so we're not a process
// group leader
switch (fork()) {
@@ -71,7 +70,6 @@ CUnixPlatform::daemonize(const char* name, DaemonFunc func)
// parent exits
exit(0);
}
#endif
// become leader of a new session
setsid();