mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Fix daemonize on Solaris 10.
git-svn-id: file:///svn/unbound/trunk@2026 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
698b9df9de
commit
4642bcb0bc
2 changed files with 3 additions and 2 deletions
|
|
@ -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 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue