opendir(/dev/fd/n) should fail

Helmut Karlowski helmut.karlowski@ish.de
Fri Jan 23 12:17:00 GMT 2015


--------------------------------------------------
Helmut Karlowski <helmut.karlowski@ish.de> wrote:
(23/01/2015 10:54)
> 
> It's not just bash. The same happens in my home-grown shell. Starting 
> with /dev/fd/3 opendir succeeds giving (only the opendir-entries):

Maybe it's because:

3 -> /proc/3008/fd/

which recurses into /dev/fd again?

-Helmut



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list