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.

> ( or it it just those written in C - I forget - but most of the kernel
> is anyway... )

The language the executable (or kernel) was written in doesn't really
play a part in this--file descriptors are a OS (Unix and others)
concept.

Cheers,
-mjg
-- 
Matthew Gregan                     |/
                                  /|                [EMAIL PROTECTED]

Reply via email to