1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-28 04:46:17 +00:00

Use HAVE_SETSID #define when testing for setsid()

This commit is contained in:
Alexander Barton 2012-09-11 14:38:19 +02:00
parent 74c7d7131f
commit b2482b39e4

View File

@ -715,7 +715,7 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
}
/* New child process */
#ifndef NeXT
#ifdef HAVE_SETSID
(void)setsid();
#else
setpgrp(0, getpid());