Fun with file descriptors
Posted Jun 14, 2007 7:58 UTC (Thu) by
slamb (guest, #1070)
In reply to:
Fun with file descriptors by nlucas
Parent article:
Fun with file descriptors
Avoiding code which is broken if copy'n'pasted into the wrong context is a hopeless job - the
best you can do is state your code's assumptions, and whoever adds code (whether pasted or not)
must take responsibility for it.
Anyway, I can't really imagine when you'd ever want to replace stdin/stdout/stderr while
multiple threads are going, so I don't know why someone would paste this there.
(
Log in to post comments)