mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 21:25:55 +08:00
Changes to support building on solaris, irix, and darwin. Also
removed test for working fork (AC_FORK).
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user