[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reflection and /proc
Dominik Kubla wrote:
>I see where you're aiming, but IMHO this is not necessary at all. The
>application should do it's own bookkeeping and know what file descriptors
>are open. As for your example: i very much prefer the penalty for an
>unecessary system call to added complexity and possible incompatibility:
>Did you ever try to port from/to HP-UX? Their pty handling will drive you
>crazy...
Not always. Unless the fileids are set to close-on-exec an exec call will
pass open file ids to a new image. This image does not know what files
are open (not even stdin,stdout,stderr are required even if they are
usually defaulted to open). It is ASSUMED that the new image expects the
open file ids that are passed.
-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil
Any opinions expressed are solely my own.
-
Linux-future: thinking about the future of the Linux kernel
Archive: http://humbolt.nl.linux.org/lists/
Wish list: http://users.ox.ac.uk/~mert0236/linux-future.html