X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=2.1 required=5.0	tests=AWL,BAYES_50,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
From: Len Giambrone <Len.Giambrone@intersystems.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
CC: Len Giambrone <Len.Giambrone@intersystems.com>
Date: Mon, 25 Apr 2011 10:08:05 -0400
Subject: combination of bash and cmd.exe causes fatal error when used under CYGWIN=tty
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Message-Id: <20110425140806.C10479D59FA@mail2.intersystems.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Greetings.

If I set CYGWIN=3Dtty, then cygwin programs die with=20
*** fatal error - couldn't initialize fd 0 for /dev/ttyN

Example:

C:\cygwin\home\lgiambro>bash -c "cmd /c 'ls'"
=A0=A0=A0=A0=A0 0 [main] ls 7440 C:\cygwin\bin\ls.exe: *** fatal error - co=
uldn't initiali
ze fd 0 for /dev/tty7
=A0=A0=A0=A0=A0 0 [main] ls 7440 C:\cygwin\bin\ls.exe: *** fatal error - co=
uldn't initiali
ze fd 0 for /dev/tty7
Stack trace:
Frame=A0=A0=A0=A0 Function=A0 Args
00283918=A0 6102796B=A0 (00283918, 00000000, 00000000, 00000000)
00283C08=A0 6102796B=A0 (6117EC60, 00008000, 00000000, 61180977)
00284C38=A0 61004F1B=A0 (611A82B0, 00000000, 61243B04, 00010000)
End of stack trace

Corinna had mentioned that she was aware of the problem and looking for the=
 cause in
http://cygwin.com/ml/cygwin/2010-09/msg00237.html

Has any progress been made on this issue?=A0 Does anyone know of a way to g=
et around it?

-Len


--
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

