delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/09/11:03:21

X-Spam-Check-By: sourceware.org
Date: Tue, 7 Feb 2006 11:01:35 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: problems with exit codes on 64-bit Windows XP Pro x64
Message-ID: <20060207100135.GL15572@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1649 DOT 1139266194 AT gemini>
Mime-Version: 1.0
In-Reply-To: <1649.1139266194@gemini>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 Feb  6 14:49, Kevin Layer wrote:
> I'm running the latest cygwin (1.5.19, see cygcheck below).
> 
> My application is a native Windows app (64 and 32-bit).  It includes
> no cygwin libraries and is not compiled with cygwin's gcc.  When I
> execute cygwin programs from my app, however, the return value
> obtained from cygwin programs is always 0.
> 
> More precisely, I spawn a particular cygwin program, say `make' or
> `sh', with CreateProcess().  When the program exits
> GetExitCodeProcess() always sets the exit status to 0, no matter what
> the real exit status was.

I just applied a patch which should return the correct error code.

Thanks for the testcase, it's highly appreciated, though... it was
a lot of code for emulating cmd's "echo %errorlevel%" ;-)


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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