When I read teh "readme" I realized what was going on.
FILE * descriptors have a buffer associated with them . So, if you
fork () that buffer gets copied.
If I run ./simple, it will work just fine, as the stdout
filedescriptor is flushed on every carriage return. If I do "./simple
> bla", there are lots of duplicates, as the stdout buffer gets
copied into many sub-processes which eventually write out the
buffer before exiting.
Reproduced on 2.0.33, libc5 something.
Roger.
-- Actor asks a collegue: "To what do you owe your success in acting?" Answer: "Honesty. Once you've learned how to fake that, you've got it made." -------- Custom Linux device drivers for sale! Call for a quote. ---------- Email: R.E.Wolff@BitWizard.nl || Tel: +31-15-2137555 || FAX: +31-15-2138217- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu