Champ Clark III [Softwink] wrote:

>       Thanks for the info.  I have a user having issues with CentOS
> 5.5 & compiling Sagan.  I suspect it's the same issue,  but haven't had
> a chance to load up CentOS 5.5 in a VM.  Please,  let me know what you
> find & what the "fix" is.  Like you,   I'd like to keep the install
> to a "standard system" as possible.

I'm attaching a patch you need to compile rsyslogd 5.6.0 on CentOS 5.5.
The configure script has a check for epoll_create1(), but there's #ifdef
missing at one place. I'm not sure if the constant 10 in epoll_create(10)
is the correct substitution. The man page says the value is ignored since
kernel 2.6.8, so any value is fine for CentOS 5.5. I don't know what's
appropriate for older kernels.

-- 
 .-.   .-.    Yes, I am an agent of Satan, but my duties are largely
(_  \ /  _)   ceremonial.
     |
     |        [email protected]
--- plugins/imptcp/imptcp.c.orig	2010-11-04 16:45:01.000000000 +0100
+++ plugins/imptcp/imptcp.c	2010-11-04 16:53:10.000000000 +0100
@@ -1039,7 +1039,12 @@
 		ABORT_FINALIZE(RS_RET_NO_RUN);
 	}
 
+#ifdef HAVE_EPOLL_CREATE1
 	if((epollfd = epoll_create1(EPOLL_CLOEXEC)) < 0) {
+#else
+	if((epollfd = epoll_create(10)) < 0 ) {
+		fcntl(epollfd, F_SETFD, FD_CLOEXEC);
+#endif
 		errmsg.LogError(0, RS_RET_EPOLL_CR_FAILED, "error: epoll_create() failed");
 		ABORT_FINALIZE(RS_RET_NO_RUN);
 	}
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to