In message <[EMAIL PROTECTED]>, "Simon 'portlint
' Schubert" writes:

>> These files, conventionally called /dev/fd/0, /dev/fd/1, /dev/fd/2,
>>    and so on, refer to files accessible through file descriptors. If file
>>    descriptor n is open, these two system calls have the same effect:
>>    fd = open("/dev/fd/n",mode);
>>    fd = dup(n);
>
>i read that only concerning *open* fds. (you can't dup a closed
>[non-existant] fd).
>
>furthermore i think there was a patch floating around addressing exactly
>this issue. perhaps it was even committed (i'm too lazy to search for
>it). solution was to test in configure for additional fds accessible
>from /dev/fd/* and build without that feature if not.

Well, as far as I know we don't need a patch, we just need to mount
fdescfs then.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to