daemon is gnu specific:
---
CONFORMING TO
Not in POSIX.1-2001. A similar function appears on the BSDs.
The daemon() function
first appeared in 4.4BSD.
---
Solaris, uclibc and other does not have it.
2012/3/8 Samuli Seppänen :
> Which platforms need daemon() emulation? Only Windows
Which platforms need daemon() emulation? Only Windows?
I think it makes sense to isolate OS compatibility functions to files
under src/compat. Better than having them in misc.c. Also, I can't see
any obvious issues with the patch, code-vise.
ACK.
--
Samuli Seppänen
Community Manager
OpenVPN Tec