This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: opendir(/dev/fd/n) should fail
- From: Helmut Karlowski <helmut dot karlowski at ish dot de>
- To: cygwin at cygwin dot com
- Cc: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- Date: Fri, 23 Jan 2015 11:00:34 +0100
- Subject: Re: opendir(/dev/fd/n) should fail
- Authentication-results: sourceware.org; auth=none
- References: <20150123094322 dot GA5612 at calimero dot vinschen dot de> <20150123105430 dot 210869D0 dot helmut dot karlowski at ish dot de>
--------------------------------------------------
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