summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Vierling <todd.vierling@oracle.com>2013-08-22 10:36:03 -0400
committerRainer Gerhards <rgerhards@adiscon.com>2013-08-26 11:01:39 +0200
commit6a913a7ae05bc71bfee20d031b9e383cf75a8683 (patch)
tree6a6ff13fd2141b5f63e910f52857132d2239fd38
parentf4a43789257fb649db96214a5d33993eef9cf772 (diff)
downloadrsyslog-6a913a7ae05bc71bfee20d031b9e383cf75a8683.tar.gz
rsyslog-6a913a7ae05bc71bfee20d031b9e383cf75a8683.tar.bz2
rsyslog-6a913a7ae05bc71bfee20d031b9e383cf75a8683.zip
Add autoconf check for setsid().
Because of a historical typo, the simpler code path in untty() which uses the setsid() all-in-one call has never been used. Enable that check, so it will get used instead of the more complex setpgrp()/ioctl() pair on most modern OS's.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index aee71664..41eac120 100644
--- a/configure.ac
+++ b/configure.ac
@@ -119,7 +119,7 @@ AC_TYPE_SIGNAL
AC_FUNC_STAT
AC_FUNC_STRERROR_R
AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([flock recvmmsg basename alarm clock_gettime gethostbyname gethostname gettimeofday localtime_r memset mkdir regcomp select setid socket strcasecmp strchr strdup strerror strndup strnlen strrchr strstr strtol strtoul uname ttyname_r getline malloc_trim prctl epoll_create epoll_create1 fdatasync syscall lseek64])
+AC_CHECK_FUNCS([flock recvmmsg basename alarm clock_gettime gethostbyname gethostname gettimeofday localtime_r memset mkdir regcomp select setsid socket strcasecmp strchr strdup strerror strndup strnlen strrchr strstr strtol strtoul uname ttyname_r getline malloc_trim prctl epoll_create epoll_create1 fdatasync syscall lseek64])
# getifaddrs is in libc (mostly) or in libsocket (eg Solaris 11) or not defined (eg Solaris 10)
AC_SEARCH_LIBS([getifaddrs], [socket], [AC_DEFINE(HAVE_GETIFADDRS, [1], [set define])])