X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Fri, 11 Jan 2008 11:16:22 -0500 (EST)
From: Igor Peshansky <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: cygwin@cygwin.com
Subject: Re: [BUG?] run.exe and pdflatex
In-Reply-To: <Pine.GSO.4.63.0801111110460.13638@access1.cims.nyu.edu>
Message-ID: <Pine.GSO.4.63.0801111114580.13638@access1.cims.nyu.edu>
References: <fm5sat$o04$1@ger.gmane.org> <Pine.GSO.4.63.0801101505510.8742@access1.cims.nyu.edu>   <fm62p7$frr$1@ger.gmane.org> <Pine.GSO.4.63.0801101700480.8742@access1.cims.nyu.edu>   <4786AC35.4030608@upb.de> <Pine.GSO.4.63.0801101841210.13638@access1.cims.nyu.edu>   <4786B436.5030702@upb.de> <Pine.GSO.4.63.0801102351320.13638@access1.cims.nyu.edu>   <20080111095321.GK5097@calimero.vinschen.de> <Pine.GSO.4.63.0801111005440.13638@access1.cims.nyu.edu>   <20080111153027.GA19142@calimero.vinschen.de>  <Pine.GSO.4.63.0801111110460.13638@access1.cims.nyu.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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
Note-from-DJ: This may be spam

On Fri, 11 Jan 2008, Igor Peshansky wrote:

> On Fri, 11 Jan 2008, Corinna Vinschen wrote:
>
> > On Jan 11 10:11, Igor Peshansky wrote:
> > > So, what was the reason, then, to remove "si.wShowWindow = SW_HIDE" from
> > > spawn_guts in CVS?  Having it makes it much easier to fix run.exe
> > > appropriately...
> >
> > I would be somewhat surprised if this code would have any effect in
> > the trunk.  The code in question looked like this:
> >
> >   if (!wincap.pty_needs_alloc_console () && newargv.iscui && myself->ctty == -1)
> >     {
> >       si.dwFlags |= STARTF_USESHOWWINDOW;
> >       si.wShowWindow = SW_HIDE;
> >     }
> >
> > Given that pty_needs_alloc_console() is false only on 9x, and is always
> > true on NT, the above code was only executed on 9x.  Since 1.7 dropped
> > 9x support, the code could go away.  Shoot if I missed something.
>
> You didn't, but I'm confused now.  Why would the code that uses execve to
> spawn a Cygwin console process NOT pop up a console window?  Even if the
> parent is compiled with -mwindows, if the app needs a console, one would
> be created, wouldn't it?
> 	Igor

Ugh.  ENOCOFFEE.  fhandler_console::need_invisible() takes care of it.  So
run.exe can be changed to use execve even in CVS HEAD.
Sorry for the noise.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it." -- Rabbi Hillel

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

