Re: single instance of multilog for multiple processes
Daryl Tester <[email protected]> Mon, 21 Sep 2009 09:36:58 +0930
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
(* Reply to /dev/null'd *) Daryl Tester wrote: > Richard Lucassen wrote: >> Is this the right way to do this or are there some restrictions or >> disadvantages? Two processes writing simultaneously to the fifo >> will be processed sequentially AFAIK. > You could also potentially (depending on access rights etc.) do D'oh - scratch that, I didn't read the sequentially part clearly enough (I thought the processes were being executed sequentially ... never mind). What Paul said with the fifo is correct - I don't think there are any atomic guarantees with writes to pipes (named or otherwise), so there is potential for log line mangling (I've actually struck this with traditional unnamed pipe + multilog). -- Regards, Daryl Tester "Scheme is an exotic sports car. Fast. Manual transmission. No radio. Common Lisp is Howl's Moving Castle." -- Steve Yegge, comparing Lisp families to cars.