diff --git a/daemon/unbound.c b/daemon/unbound.c index 424766d90..9e4ea3747 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -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 */ } diff --git a/doc/Changelog b/doc/Changelog index 36535b3db..2dbb990c4 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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.