Re: Reading a XML document embeeded in a logfile

John Cowan (cowan@locke.ccil.org)
Mon, 19 Oct 1998 11:00:45 -0400


James Grimm wrote:

> I really like this solution (and pardon me if I reuse the idea), but
> there is still the little problem of locking the "logentries" file.

That's a problem with every logfile. About all you can do is use
an atomic system call like write() and hope for the best. (Obviously,
don't make the entry too vulgar big, either.)

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)