From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5170 invoked by alias); 11 May 2011 16:00:46 -0000 Received: (qmail 5161 invoked by uid 22791); 11 May 2011 16:00:45 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.sidefx.com (HELO mail.sidefx.com) (38.99.137.163) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 May 2011 16:00:31 +0000 Message-ID: <4DCAB29C.7010205@sidefx.com> Date: Wed, 11 May 2011 16:00:00 -0000 From: Edward Lam User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Who's using "CYGWIN=tty" and why? References: <20110510211800.CCBDF9D5A21@mail2.intersystems.com> <20110511063433.GD28594@calimero.vinschen.de> <4DCAA510.9000909@sidefx.com> In-Reply-To: <4DCAA510.9000909@sidefx.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-05/txt/msg00164.txt.bz2 On 5/11/2011 11:02 AM, Edward Lam wrote: > So this brings us to Cygwin. When we spawn such a Windows mode app from > Cygwin, the method I describe above fails. The call to > _open_osfhandle(info.hStdOutput, _O_TEXT) returns with an error value of > -1. This is likely why jam reports "the handle is invalid". PS. It would be interesting to find out why this fails. I would have expected that Cygwin/bash would have spawned the child process such that the inherited hStdOutput handle was open-able with _open_osfhandle(). -Edward -- 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