flockfile does not work with stdout (on

Till Plewe till at score.is.tsukuba.ac.jp
Tue Apr 5 19:12:01 PDT 2005


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


More information about the freebsd-questions mailing list