Use HAVE_SETSID #define when testing for setsid()
This commit is contained in:
parent
74c7d7131f
commit
b2482b39e4
|
@ -715,7 +715,7 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* New child process */
|
/* New child process */
|
||||||
#ifndef NeXT
|
#ifdef HAVE_SETSID
|
||||||
(void)setsid();
|
(void)setsid();
|
||||||
#else
|
#else
|
||||||
setpgrp(0, getpid());
|
setpgrp(0, getpid());
|
||||||
|
|
Loading…
Reference in New Issue