Re: single instance of multilog for multiple processes

Richard Lucassen <[email protected]> Mon, 21 Sep 2009 09:48:25 +0200
Newsgroups gmane.comp.djb.syslog
Organization XAQ Systems
Message-ID <[email protected]>
On Sun, 20 Sep 2009 19:32:55 -0400
[email protected] (Paul Jarc) wrote:

> Richard Lucassen <[email protected]> wrote:
> > Two processes writing simultaneously to the fifo will be processed
> > sequentially AFAIK.
> 
> As long as their output lines are short enough, each line will come
> through intact.  Otherwise, you may get the beginning of a long line
> from one process, then a line from another process, then the rest of
> the first line.  Using separate multilogs and merging their log files
> would avoid that problem.

"man fifo" is not clear enough about this matter. The question is:
where is the limit? Is it a block of 4096 bytes? Is it the 0x0a char?
I just write lines no longer than let's say 80 to 100 charachters
(including the timestamp) so I presume there will be no problem.

And how would you merge two outputs from two separate multilog
processes into file. Using a postprocessor?

I could also use "setlock" to lock the fifo for writing.

And 

-- 
___________________________________________________________________
It is better to remain silent and be thought a fool, than to speak
aloud and remove all doubt.

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
| Public key and email address:                                    |
| http://www.lucassen.org/mail-pubkey.html                         |
+------------------------------------------------------------------+