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|SHARED memory and wait on a flag byte with atomic_cmpset(). Actually, writing to stdout should be atomic for most writes (I have never seen gcc output garbled when doing parallel makes for example). -- Dan Nelson [EMAIL PROTECTED] _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"