mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 05:13:36 +08:00
minor automake fixes.
This commit is contained in:
@@ -40,6 +40,7 @@ CUnixPlatform::uninstallDaemon(const char*)
|
||||
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()) {
|
||||
@@ -55,6 +56,7 @@ 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