Re: flockfile does not work with stdout (on

2005-04-05 Thread Till Plewe
On Tue, Apr 05, 2005 at 10:40:49PM -0500, Dan Nelson wrote: > In the last episode (Apr 06), Till Plewe said: > > How can I control the output of processes (forked from a single > > process) all writing to the same file? > > f{un,}lockfile(file) seems to work unless file=stdout. > > If they are sti

Re: flockfile does not work with stdout (on

2005-04-05 Thread Dan Nelson
In the last episode (Apr 06), Till Plewe said: > How can I control the output of processes (forked from a single > process) all writing to the same file? > f{un,}lockfile(file) seems to work unless file=stdout. If they are still the same process image (i.e. no execs), you could mmap some ANONYMOUS

flockfile does not work with stdout (on

2005-04-05 Thread Till Plewe
How can I control the output of processes (forked from a single process) all writing to the same file? f{un,}lockfile(file) seems to work unless file=stdout. Are there any other simple methods I can try? - Till PS. I am using 5.4-PRERELEASE i386 SMP-GENERIC ___