delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/14/14:49:33

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 14 Jul 2010 14:49:23 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: {lp,cb}Reserved2 under Windows 7 and file descriptors
Message-ID: <20100714184922.GA13548@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <000801cb2383$9c3ad3a0$d4b07ae0$@gmail.com>
MIME-Version: 1.0
In-Reply-To: <000801cb2383$9c3ad3a0$d4b07ae0$@gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Wed, Jul 14, 2010 at 11:37:26AM -0700, Daniel Colascione wrote:
>Windows 7 WOW64 seems to DTRT with respect to copying the process data;
>needs_count_in_si_lpres2 can be false except on Vista. I'm testing a cygwin
>with that modification now and it works fine (persistent Windows 7 sporadic
>issues notwithstanding; those seem to be solved by rebaseall).
>
>lpReserved2 working properly leads to another idea: set *lpReserved2 to a
>non-zero value even when needs_count_in_si_lpres2 is a false; specifically,
>set it to three and pass the stdin, stdout, and stderr handles and flags via
>child_info. (child_info would have to begin with the appropriate values.) At
>the worst, it does no harm; but if the child is using the MS C runtime,
>it'll pick up the stdin file descriptors and flags from this data area. If
>the flags are set properly, you should be able to get the C runtime to
>report _isatty() is true for cygwin ptys. (Though of course GetFileType will
>still reveal the thing to be a socket.)

You seem to be jumping into the middle of a discussion here.  How about
providing some context?

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019