use daemon() when the C library provides it
For systems that cannot support fork() (like no-mmu Linux), use daemon() if it is available for the daemonizing code. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:

committed by
Max Kellermann

parent
c3e02bec3b
commit
499ed62dd7
@@ -100,7 +100,7 @@ dnl
|
||||
dnl libc features
|
||||
dnl
|
||||
|
||||
AC_CHECK_FUNCS(syslog)
|
||||
AC_CHECK_FUNCS(daemon fork syslog)
|
||||
if test $ac_cv_func_syslog = no; then
|
||||
# syslog is not in the default libraries. See if it's in some other.
|
||||
for lib in bsd socket inet; do
|
||||
|
Reference in New Issue
Block a user