delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/02/01/03:23:49

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A74753857C51
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1706775828;
bh=RmSFZONsKx2uteq1B87Eyh4/iyY7O6vpIfg6Vm6+eMg=;
h=References:In-Reply-To:Date:Subject:Cc:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=R36sq8fzDasZPLD7ACuaEnPfilkVjV5Bm4jVIyzmegzvytpG2l9+Hjhgyw6t4rszM
RhLO9STAqdZTXbrN5WtbT+ob9/z7jmRdgKZU3nzJf/y2M5edEKz4K1PR63Zhz9c05N
oBQpPByNUVGLjLRzAS8ac98OABUH8RESjp8V6hiw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A692E385803B
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A692E385803B
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706775801; cv=none;
b=hZ0+9/+l3fEDsSpE+4qpEW+Vxnyp/K/Vi71tVVzFPz81DINsq0Zcznx+FqoKbBTDDw1RaKQxII2QOzYEWG+OU8adG7BhR0hw8AuQP9nnKkpFwmNFUBmz529i3ciaCN/sxSZw/pAkgzYSC1Z8yKQ01fbHPKkTIOuc3PYjKvIo9pc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1706775801; c=relaxed/simple;
bh=1yp6SfAHXan/UIu4V0VS+MVye+Y7XmyACxbGjc7oQdU=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject;
b=k9l5HaZfttpoIIUwlXF4L+Tr/tFoWpG7O2YMp97Cs+VW5eLjb80aHvsPGBDX9OngGAdNoCk6LyQ/lyqEu6KKwOwMWm7Uh4nLINaAcIQI+G7bCOdPEZoUMGDNgsE4sbbUYC0ltYDizHsFGT2GdobpyPgvoV57es6Hff6iP9VMioo=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1706775798; x=1707380598;
h=cc:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=1yp6SfAHXan/UIu4V0VS+MVye+Y7XmyACxbGjc7oQdU=;
b=mzYALEGK9dwU7/fc+hRxL2iiSZt1ukCQzvPqVnZXes+QKdUjCqQE4eL8br1OGJ5UfH
fceVAQ+riYBTuDkvuz7WyEf7aScg5g2Y/E3jSMMe+PoBqrfoUIReLLMMuCA7ufTLfSM/
99oMSWgUqL9PPy+XaGLcc9/ppKVvXXWWyYqlzvt6xgdpxGP3UJAcXRLt3Nc4KltaWjmg
Og1j/TZYwYnUWyczzLpKd0v6IFEFToFT//t7h3FzMRVBx/qHtZA2rvtq9PTYJEEWV8tI
wKoS4H94+yHuOTSsdXffqIdykvmk+0dcBcbCfWkit/uUSjIGLVHmunNp/dZRtiFrBTlq
TJYA==
X-Gm-Message-State: AOJu0YyuK8A0PPA2gRIAu0TIz/SQU3iOM+RSqpqt3yZ7uyT5kyW7Gqnd
g2AXEI86AjvEMb4gFHYVQd2iThTzEqowuS0xByHxcNsCmHYxxdyZfZ0wIV3WvbYD6SwpQPqHJm4
XZvDSNegnj8zACUnDp6YVscjPINFevKWM0mHVGbNygc3aethdujw=
X-Google-Smtp-Source: AGHT+IFokF4E/OEMiQjv7taBG0H1ZegaUt6cWJx/5kSitUWpaee7vZMpZJ513HXAt4Z2eQkiR2nlsClv5ko7XrGkq+o=
X-Received: by 2002:a17:906:688d:b0:a36:72f5:af5 with SMTP id
n13-20020a170906688d00b00a3672f50af5mr3202645ejr.11.1706775797632; Thu, 01
Feb 2024 00:23:17 -0800 (PST)
MIME-Version: 1.0
References: <CAJQQdJiOEduFeAthZ+q+LNXV33aJOhAXqq3sCaxdCqRpAjVmvA AT mail DOT gmail DOT com>
<CAB8Xom-PnumWSLoDFgERXA4GX0zotQiKFvi_wL7Bvsv133WAmw AT mail DOT gmail DOT com>
In-Reply-To: <CAB8Xom-PnumWSLoDFgERXA4GX0zotQiKFvi_wL7Bvsv133WAmw@mail.gmail.com>
Date: Thu, 1 Feb 2024 08:22:40 +0000
Message-ID: <CAJQQdJhzSNZ5dG254g5dv_AuWRxt+R-HLdiCPTkCNv=o+4PVeQ@mail.gmail.com>
Subject: Re: Aren't Windows System Error popups meant to be disabled in Cygwin?
Cc: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, JMQ_SPF_NEUTRAL, MISSING_HEADERS, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: David Allsopp via Cygwin <cygwin AT cygwin DOT com>
Reply-To: David Allsopp <david AT tarides DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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

Thanks,


David

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

- Raw text -


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