public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Kevin Layer <layer@franz.com>
To: cygwin@cygwin.com
Subject: Re: problems with exit codes on 64-bit Windows XP Pro x64
Date: Tue, 07 Feb 2006 17:59:00 -0000	[thread overview]
Message-ID: <16330.1139328634@gemini> (raw)
In-Reply-To: Message from Corinna Vinschen <corinna-cygwin@cygwin.com>     of "Tue, 07 Feb 2006 11:01:35 +0100." <20060207100135.GL15572@calimero.vinschen.de>

Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:

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

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

Yeah.  Originally, we thought it was a Microsoft bug... so we went the
extra mile.

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

  parent reply	other threads:[~2006-02-07 16:10 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-06 22:52 Kevin Layer
2006-02-07 10:16 ` Corinna Vinschen
2006-02-07 10:24   ` Corinna Vinschen
2006-02-09 20:44     ` Kevin Layer
2006-02-09 20:48       ` Christopher Faylor
2006-02-07 17:59   ` Kevin Layer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-02-16 10:05 Does CYGWIN work on Windows 2008 x86 architecture ? Martine Carannante
2009-02-16 11:07 ` Corinna Vinschen
2009-02-16 14:05   ` Martine Carannante
2009-02-16 23:10   ` Ben Kamen
2008-10-20 21:43 cygwin bash crashes on Win Serv 2008 Freddy Jensen
2008-10-23 13:55 ` Corinna Vinschen
2008-10-23 14:10   ` Corinna Vinschen
2008-10-23 15:40     ` Dave Korn
2008-10-23 16:21       ` Corinna Vinschen
2008-10-23 16:52         ` Dave Korn
2008-10-23 17:00           ` Freddy Jensen
2008-10-23 17:43             ` Dave Korn
2008-10-23 18:54           ` Corinna Vinschen
2008-10-28 15:05             ` Corinna Vinschen
2008-10-31  4:37             ` EMF
2008-10-31  5:01               ` Christopher Faylor
2008-10-31 22:57                 ` EMF
2006-02-06 22:40 problems with exit codes on 64-bit Windows XP Pro x64 Kevin Layer
2006-02-06 23:56 ` Samuel Thibault
2006-02-07  2:31   ` Kevin Layer
2003-07-10 15:40 Cygwin apps talking to Windows browsers? Jeffrey C Honig
2003-07-10 16:24 ` Igor Pechtchanski
     [not found]   ` <pechtcha@cs.nyu.edu>
2003-07-10 16:28     ` Jeffrey C Honig
     [not found]     ` <corinna-cygwin@cygwin.com>
2005-01-15 23:18       ` odd behavior of symlinks on Win XP SP2 Jeff.Hodges
2005-01-16 15:15         ` Corinna Vinschen
2005-01-17 17:01       ` Jeff.Hodges
2005-01-17 17:32         ` Christopher Faylor
2005-01-17 22:08           ` Sven Köhler
2005-01-17 23:11             ` Christopher Faylor
2005-01-31 21:15       ` odd behavior of symlinks on Win XP Jeff.Hodges
2005-02-01 19:43       ` Jeff.Hodges
2005-02-01 20:48         ` Christopher Faylor
2008-01-22  9:08       ` hard link error on Vista with recent snapshots Herb Maeder
2008-10-10  0:36       ` invalid login gid in /etc/passwd does not show group name as 'mkgroup' Herb Maeder
2008-10-11  7:22       ` Herb Maeder
2008-10-15  5:43       ` Herb Maeder
2008-10-23 19:18       ` cygwin bash crashes on Win Serv 2008 Freddy Jensen
2008-10-24 17:05       ` [Fwd: Apologies for multiple messages (Please Help!)] Herb Maeder
2008-10-24 17:29         ` Dave Korn
2008-11-07 17:52       ` [ANNOUNCEMENT] Updated: OpenSSH-5.1p1-6 (-7) Herb Maeder
2008-11-07 18:36         ` Christopher Faylor
2008-11-07 21:17       ` Herb Maeder
2008-11-07 21:38       ` Herb Maeder
2008-11-07 22:10         ` Christopher Faylor
2008-11-13  1:54       ` sshd on vista error "initgroups: Permission denied" (cygwin-1.7) Herb Maeder
2008-11-13 14:51         ` Corinna Vinschen
2008-11-13 15:29           ` Corinna Vinschen
2008-11-14  7:31       ` Herb Maeder
2008-11-14 11:24         ` Corinna Vinschen
2008-11-20  4:25       ` Herb Maeder
2008-11-20  6:35       ` Herb Maeder
2008-11-20 10:46         ` Corinna Vinschen
2008-11-20 23:41       ` Herb Maeder
2008-11-20 23:53         ` Herb Maeder
2008-11-21  0:18         ` Matthew Woehlke
2008-11-21  0:49         ` Herb Maeder
2008-11-21  3:09         ` Herb Maeder
2008-11-21  7:05         ` Herb Maeder
2008-11-21 11:40         ` Herb Maeder
2008-11-21 13:48         ` Herb Maeder
2008-11-21 14:46         ` Herb Maeder
2009-02-16 16:16       ` Does CYGWIN work on Windows 2008 x86 architecture ? Freddy Jensen
2003-07-10 16:36 ` Cygwin apps talking to Windows browsers? andrew brian clegg
2003-07-10 20:51   ` Cygwin apps talking to Windows browsers? openmoz for file URLs Ralf Hauser
2003-07-10 19:11 ` Cygwin apps talking to Windows browsers? Scott W Brim
     [not found] <OE19prw0m25q8awYFDI000008a4@hotmail.com>
2002-11-20 16:23 ` emacs 100% cpu usage bug Christopher Faylor
2002-11-21 11:47   ` Jim Goltz
2002-11-21 11:50     ` Igor Pechtchanski
2002-11-23 14:09       ` Jim Goltz
2002-11-23 14:53         ` Christopher Faylor
2002-11-24  8:53           ` Jim Goltz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16330.1139328634@gemini \
    --to=layer@franz.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).