Mail Archives: djgpp-workers/2001/09/10/16:35:03
> From: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
> Date: Mon, 10 Sep 2001 18:39:13 +0200
> >
> > base/cond......c:/util/djgpp/tmp/dj310000: Cannot duplicate
> > fd 1: Bad file descriptor (EBADF)
> > FAILED at test 0
>
> There's a known problem with file descriptors perl-spawned
> programs (present in 5.6.0, 5.6.1 and 5.7.2), which prevents
> autoconf > 2.50 from functioning under DJGPP. I've yet to find
> either cause or solution (Laszlo, you have any idea?). A test
> case is attached - run normally, foo.exe will allocated
> FDs 5 - 19 for the testfiles; if run from the perl script, it
> gets FDs 3 - 17 (and 3 and 4 are not supposed to be used, IIRC).
Why is this a problem, and how does it cause the EBADF failure?
I don't think a program (Perl in this case) should assume anything
about the descriptors that are preconnected, beyond the standard 3
ones.
- Raw text -