Rainer Gerhards wrote:
> On 11/15/2010 03:54 PM, Dražen Kačar wrote:
>> Configuration option would be perfect for my purposes. I'd just need a
>> patch unless you intend to release a new version in the next few days.
>
> I have attached a patch that *could* work. Unfortunately, I currently do
> not have the time to really test it out. So I'd appreciate if you could
> give it a try and report back your results.
It doesn't work for me. In preparePipe() you forgot to use the variable
mode in the subsequent open(). I've fixed that, but it still doesn't work.
Linux lsof can't show file descriptor flags and I don't know any other way
to get the O_NONBLOCK flag from the kernel, so I'm inferring from the
behaviour. strace still shows 30 second sleep in select().
I suppose that the code from runtime/stream.c is being used and it has
unconditional non-blocking mode for STREAMTYPE_NAMED_PIPE. I don't know
enough about architecture to be able to write a correct patch for that.
I'm not even sure I'm using ompipe module. I don't load it explicitely in
the config file, version 5.6.0 doesn't have documentation for it, so I
wasn't even aware it existed before I've seen your patch.
In the configuration file I'm using FIFO like this:
local1.* |/opt/foo/my_named_pipe
And that seems to use the code from stream.c. I'm not aware of any other
way to use a FIFO as a destination.
> As a unrelated side-note, I have set up CentOS 5.5 in a VM and tried to
> compile rsyslog from git there. The autotools version seems to be very
> old. Is there any way to get 2.61 on that platform without building from
> source (I want to be as close to a standard system as possible and so
> I'd like not to build too many different things...).
I'm not aware of a repository with the newer autotools packages. I
didn't need them so far, so I wasn't looking.
--
.-. .-. Yes, I am an agent of Satan, but my duties are largely
(_ \ / _) ceremonial.
|
| [email protected]
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com