Bash uses fd 255?

Bill Hawes (whawes@star.net)
Wed, 25 Mar 1998 09:13:22 -0500


I'm working on a patch to provide an expandable fd array and have run into an
odd problem, apparently in bash. For some reason the shell is using the
sys_dupfd2 call to move fd 3 to fd 255, so that it ends up with fds 0, 1, 2, and
255. This of course forces my patch to expand the fd array even though only four
descriptors are in use.

Can anyone explain why this is being done?

Regards,
Bill

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu