delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/10/18:55:42

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 10 Jan 2008 18:54:54 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: =?ISO-8859-1?Q?Sven_K=F6hler?= <skoehler AT upb DOT de>
cc: cygwin AT cygwin DOT com
Subject: Re: [BUG?] run.exe and pdflatex
In-Reply-To: <4786AC35.4030608@upb.de>
Message-ID: <Pine.GSO.4.63.0801101841210.13638@access1.cims.nyu.edu>
References: <fm5sat$o04$1 AT ger DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 63 DOT 0801101505510 DOT 8742 AT access1 DOT cims DOT nyu DOT edu> <fm62p7$frr$1 AT ger DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 63 DOT 0801101700480 DOT 8742 AT access1 DOT cims DOT nyu DOT edu> <4786AC35 DOT 4030608 AT upb DOT de>
MIME-Version: 1.0
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
Note-from-DJ: This may be spam

---559023410-959030623-1200009294=:13638
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT

On Fri, 11 Jan 2008, Sven Köhler wrote:

> > However, the above is *not* equivalent to using run.exe in that it will
> > not hide the console window (try it from a GUI).
>
> Just tested it. It's not true.
>
> I compiled my program with "gcc -o /bin/myrun.exe -mwindows" and
> executed "c:\cygwin\bin\myrun.exe /bin/sleep 60" from Windows Explorer.
>
> No console window and sleep.exe runs.
>
> Also "c:\cygwin\bin\myrun.exe /bin/rxvt" works as expected. No console
> window.

Actually, -mwindows just says that myrun.exe should not pop up a console
window.  The child process is a console app, and would have still popped
up a console.  Except that in Cygwin 1.5.x, spawnve always set wShowWindow
to SW_HIDE before calling CreateProcess if the parent didn't have a tty,
so, in effect, execve was doing the same as what run.exe was doing.

Now, in Cygwin 1.7.x (a.k.a. CVS HEAD), this is no longer the case (since
revision 1.243 of spawn.cc).  The comment simply says "Drop
pty_needs_alloc_console check" -- maybe Corinna can explain why it was
dropped.  So your program will not work as expected in the snapshots.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT 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

---559023410-959030623-1200009294=:13638
Content-Type: text/plain; charset=us-ascii

--
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/
---559023410-959030623-1200009294=:13638--

- Raw text -


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