]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Use HAVE_SETSID #define when testing for setsid()
authorAlexander Barton <alex@barton.de>
Tue, 11 Sep 2012 12:38:19 +0000 (14:38 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 11 Sep 2012 12:38:19 +0000 (14:38 +0200)
src/ngircd/ngircd.c

index 8a93bcb00839a796b262b890d12b373d662ccf56..67bc4df4c0180d8f79f8e4c61cd0a9c22a0bc339 100644 (file)
@@ -715,7 +715,7 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
                }
 
                /* New child process */
                }
 
                /* New child process */
-#ifndef NeXT
+#ifdef HAVE_SETSID
                (void)setsid();
 #else
                setpgrp(0, getpid());
                (void)setsid();
 #else
                setpgrp(0, getpid());