]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fix daemonize on Solaris 10. release-1.4.3
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 11 Mar 2010 13:28:53 +0000 (13:28 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 11 Mar 2010 13:28:53 +0000 (13:28 +0000)
git-svn-id: file:///svn/unbound/trunk@2026 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/unbound.c
doc/Changelog

index 424766d9011669f432698439c329bf35aec9605f..9e4ea3747c2e44877d73e1570fe18136d5c4a348 100644 (file)
@@ -313,7 +313,7 @@ detach(void)
        if(daemon(1, 0) != 0)
                fatal_exit("daemon failed: %s", strerror(errno));
 #else /* no HAVE_DAEMON */
-#ifdef HAVE_WORKING_FORK
+#ifdef HAVE_FORK
        int fd;
        /* Take off... */
        switch (fork()) {
@@ -337,7 +337,7 @@ detach(void)
                if (fd > 2)
                        (void)close(fd);
        }
-#endif /* HAVE_WORKING_FORK */
+#endif /* HAVE_FORK */
 #endif /* HAVE_DAEMON */
 }
 
index 36535b3dbbc610ca0c2be4a5fb269af431d25d83..2dbb990c4af443b00e06d8c938602bc19b838764 100644 (file)
@@ -4,6 +4,7 @@
        - fix for memory alignment in struct sock_list allocation.
        - Fix for MacPorts ldns without ssl default, unbound checks if ldns
          has dnssec functionality and uses the builtin if not.
+       - Fix daemonize on Solaris 10, it did not detach from terminal.
 
 10 March 2010: Wouter
        - --enable-alloc-lite works with test set.