Fix daemonize on Solaris 10.

git-svn-id: file:///svn/unbound/trunk@2026 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2010-03-11 13:28:53 +00:00
parent 698b9df9de
commit 4642bcb0bc
2 changed files with 3 additions and 2 deletions

View file

@ -313,7 +313,7 @@ detach(void)
if(daemon(1, 0) != 0) if(daemon(1, 0) != 0)
fatal_exit("daemon failed: %s", strerror(errno)); fatal_exit("daemon failed: %s", strerror(errno));
#else /* no HAVE_DAEMON */ #else /* no HAVE_DAEMON */
#ifdef HAVE_WORKING_FORK #ifdef HAVE_FORK
int fd; int fd;
/* Take off... */ /* Take off... */
switch (fork()) { switch (fork()) {
@ -337,7 +337,7 @@ detach(void)
if (fd > 2) if (fd > 2)
(void)close(fd); (void)close(fd);
} }
#endif /* HAVE_WORKING_FORK */ #endif /* HAVE_FORK */
#endif /* HAVE_DAEMON */ #endif /* HAVE_DAEMON */
} }

View file

@ -4,6 +4,7 @@
- fix for memory alignment in struct sock_list allocation. - fix for memory alignment in struct sock_list allocation.
- Fix for MacPorts ldns without ssl default, unbound checks if ldns - Fix for MacPorts ldns without ssl default, unbound checks if ldns
has dnssec functionality and uses the builtin if not. has dnssec functionality and uses the builtin if not.
- Fix daemonize on Solaris 10, it did not detach from terminal.
10 March 2010: Wouter 10 March 2010: Wouter
- --enable-alloc-lite works with test set. - --enable-alloc-lite works with test set.