From 4642bcb0bc217929db4434e8c295dbcae7581a64 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 11 Mar 2010 13:28:53 +0000 Subject: [PATCH] Fix daemonize on Solaris 10. git-svn-id: file:///svn/unbound/trunk@2026 be551aaa-1e26-0410-a405-d3ace91eadb9 --- daemon/unbound.c | 4 ++-- doc/Changelog | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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. -- 2.47.2