X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A8816385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1706781731; bh=nYoIpC1lNFqpqYysuctX9zaHtdhqc2nfX/Mjy9hz3Qg=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=PWGof3zLG3IgONoBN4pVSCu1jEY76c2h/g3c1+wt3FnSmksVtwM53O9OCm2s2bmgi jk2wVSj7dykhRIV9uj7V/zc8owN8amp89c9Rp/xcIEClNUg/rHbBEnSaDg07ezUCkX e8wzn0mGYpN1I4KaoqfO+CnBMpF9zFrlwzE1wyLw= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B6823858C62 Date: Thu, 1 Feb 2024 11:01:40 +0100 To: cygwin AT cygwin DOT com Subject: Re: Aren't Windows System Error popups meant to be disabled in Cygwin? Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Feb 1 08:22, David Allsopp via Cygwin wrote: > > x86_64-w64-mingw32-gcc produces a Windows program, why Cygwin should > > be involved in the execution ? > > I perhaps should have made that crystal clear - in running "./test", > I'm invoking that excecutable _from_ a Cygwin program (in this case > mintty / bash / sh), so Cygwin is very much involved - it's the > caller. > > In the actual problem which hit this, I have a non-Cygwin executable > which has called SetErrorMode(SEM_FAILCRITICALERRORS). If that program > calls test, there is no popup displayed. However, it also calls > Cygwin's sh and _that_ executes that program too, so something like > "C:\cygwin64\bin\sh -c "./test.exe | sed ..." but then the popup error > message appears. So somewhere along the line, Cygwin appears to be > resetting the system error mode, and that appears contrary to previous > (old) messages on the subject. The behaviour changed in 2020 https://cygwin.com/git/?p=newlib-cygwin.git;a=commitdiff;h=21ec498d7f912 not without a discussion https://cygwin.com/pipermail/cygwin-patches/2020q4/010870.html Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple