From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22204 invoked by alias); 29 Apr 2011 21:05:35 -0000 Received: (qmail 22196 invoked by uid 22791); 29 Apr 2011 21:05:35 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-ey0-f171.google.com (HELO mail-ey0-f171.google.com) (209.85.215.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Apr 2011 21:05:21 +0000 Received: by eydd26 with SMTP id d26so1727867eyd.2 for ; Fri, 29 Apr 2011 14:05:20 -0700 (PDT) Received: by 10.14.1.71 with SMTP id 47mr2376984eec.128.1304111119943; Fri, 29 Apr 2011 14:05:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.37.140 with HTTP; Fri, 29 Apr 2011 14:04:59 -0700 (PDT) In-Reply-To: <0C817B08-1920-43DB-B9A0-26E4B2E362EA@apple.com> References: <0C817B08-1920-43DB-B9A0-26E4B2E362EA@apple.com> From: Edward McGuire Date: Sat, 30 Apr 2011 11:30:00 -0000 Message-ID: Subject: Re: Cygwin 1.7.x on Windows 7: Exit statuses of Win32 executables are sometimes wrong To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-04/txt/msg00432.txt.bz2 On Fri, Apr 29, 2011 at 13:35, John Dong wrote: >I've tried using a different shell (like dash), but it doesn't make a difference, leading me to suspect this to be a lower-level issue within the Cygwin DLL. Have you tried it with the stock Windows command processor? Something like this (untested) script? @echo off :redo rem c:\path\to\exiter.exe 0 if errorlevel 1 exit /b %errorlevel% echo %errorlevel% goto:redo -- 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