At 2005-01-12T09:01:51+1300, Steve Holdoway wrote:
It might be an idea at this time to point out that by default every process opens 3 descriptors on startup... 0 = stdin 1 = stdout 2 = stderr
It depends how the process was started, and (depending on what you're doing), it's unsafe to assume that any of stdin, stdout, or stderr are open when your process starts. A couple of open source projects have recently discovered this the hard way by corrupting user data.
Can you expand on this Matthew?
Do you mean the programs in question had no error handling for descriptors 0,1,2 because they expected them to be open and set up correctly?
Cheers, Carl.
