Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-05 Thread David Allsopp via Cygwin
On Sat, 3 Feb 2024 at 19:25, Corinna Vinschen wrote: > > Sorry to say that, but SetThreadErrorMode/CreateProcess don't do what we > > want them to do. I just tested this myself with a modified Cygwin DLL > > (code below) and it turns out that the child process error mode is > > the same as the

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-03 Thread Corinna Vinschen via Cygwin
On Feb 3 13:39, Corinna Vinschen via Cygwin wrote: > On Feb 2 19:51, Corinna Vinschen via Cygwin wrote: > > On Feb 2 18:22, Corinna Vinschen via Cygwin wrote: > > > On Feb 2 14:56, David Allsopp via Cygwin wrote: > > > > On Fri, 2 Feb 2024 at 14:18, Corinna Vinschen via Cygwin wrote: > > > > >

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-03 Thread Jeremy Drake via Cygwin
On Fri, 2 Feb 2024, Corinna Vinschen wrote: > On Feb 2 09:43, David Allsopp via Cygwin wrote: > > However, this patch came from MSYS2, and subsequently they seem to > > have found it problematic for the same reason as me > > (https://github.com/msys2/msys2-runtime/pull/18#issuecomment-810897624)

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-03 Thread Corinna Vinschen via Cygwin
On Feb 2 19:51, Corinna Vinschen via Cygwin wrote: > On Feb 2 18:22, Corinna Vinschen via Cygwin wrote: > > On Feb 2 14:56, David Allsopp via Cygwin wrote: > > > On Fri, 2 Feb 2024 at 14:18, Corinna Vinschen via Cygwin wrote: > > > > Is it actually a safe bet that the error mode set by

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-02 Thread Corinna Vinschen via Cygwin
On Feb 2 18:22, Corinna Vinschen via Cygwin wrote: > On Feb 2 14:56, David Allsopp via Cygwin wrote: > > On Fri, 2 Feb 2024 at 14:18, Corinna Vinschen via Cygwin wrote: > > > On Feb 2 13:35, David Allsopp via Cygwin wrote: > > > > Not really suggesting it be done this way (it feels more

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-02 Thread Corinna Vinschen via Cygwin
On Feb 2 14:56, David Allsopp via Cygwin wrote: > On Fri, 2 Feb 2024 at 14:18, Corinna Vinschen via Cygwin wrote: > > On Feb 2 13:35, David Allsopp via Cygwin wrote: > > > Not really suggesting it be done this way (it feels more complicated > > > than just reverting the change), but in some ways

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-02 Thread David Allsopp via Cygwin
On Fri, 2 Feb 2024 at 14:18, Corinna Vinschen via Cygwin wrote: > > On Feb 2 13:35, David Allsopp via Cygwin wrote: > > Jon Turney via Cygwin wrote: > > > > > > I'm sympathetic, and personally I would prefer to revert the patch and > > > > stick to SEM_FAILCRITICALERRORS by default. > > > > > > >

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-02 Thread Corinna Vinschen via Cygwin
On Feb 2 13:35, David Allsopp via Cygwin wrote: > Jon Turney via Cygwin wrote: > > > > I'm sympathetic, and personally I would prefer to revert the patch and > > > stick to SEM_FAILCRITICALERRORS by default. > > > > > > The question is this: Why does, apparently, everybody expect Cygwin to > > >

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-02 Thread David Allsopp via Cygwin
Jon Turney via Cygwin wrote: > > I'm sympathetic, and personally I would prefer to revert the patch and > > stick to SEM_FAILCRITICALERRORS by default. > > > > The question is this: Why does, apparently, everybody expect Cygwin to > > do the "right thing", with different definitions of "right",

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-02 Thread David Allsopp via Cygwin
On Fri, 2 Feb 2024 at 12:55, Corinna Vinschen via Cygwin wrote: > On Feb 2 09:43, David Allsopp via Cygwin wrote: > > On Thu, 1 Feb 2024 at 10:02, Corinna Vinschen via Cygwin > > wrote: > > > > > > The behaviour changed in 2020 > > > > > >

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-02 Thread Jon Turney via Cygwin
On 02/02/2024 12:55, Corinna Vinschen via Cygwin wrote: On Feb 2 09:43, David Allsopp via Cygwin wrote: On Thu, 1 Feb 2024 at 10:02, Corinna Vinschen via Cygwin wrote: The behaviour changed in 2020 https://cygwin.com/git/?p=newlib-cygwin.git;a=commitdiff;h=21ec498d7f912 not without a

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-02 Thread Corinna Vinschen via Cygwin
On Feb 2 09:43, David Allsopp via Cygwin wrote: > On Thu, 1 Feb 2024 at 10:02, Corinna Vinschen via Cygwin > wrote: > > > > The behaviour changed in 2020 > > > > https://cygwin.com/git/?p=newlib-cygwin.git;a=commitdiff;h=21ec498d7f912 > > > > not without a discussion > > > >

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-02 Thread David Allsopp via Cygwin
On Thu, 1 Feb 2024 at 10:02, Corinna Vinschen via Cygwin wrote: > > 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 Aha, thank you! (congrats

Re: Aren't Windows System Error popups meant to be disabled in Cygwin?

2024-02-01 Thread Brian Inglis via Cygwin
On 2024-02-01 01:18, David Allsopp via Cygwin wrote: On Wed, 31 Jan 2024 at 22:27, Brian Inglis via Cygwin wrote: On 2024-01-31 06:40, David Allsopp via Cygwin wrote: Starting with this very trivial C program: #include #include int main(void) { printf("Zstandard v%d\n",

Re: Aren't Windows System Error popups meant to be disabled in Cygwin?

2024-02-01 Thread Corinna Vinschen via 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

Re: Aren't Windows System Error popups meant to be disabled in Cygwin?

2024-02-01 Thread David Allsopp via Cygwin
> 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 -

Re: Aren't Windows System Error popups meant to be disabled in Cygwin?

2024-02-01 Thread David Allsopp via Cygwin
On Wed, 31 Jan 2024 at 22:27, Brian Inglis via Cygwin wrote: > > On 2024-01-31 06:40, David Allsopp via Cygwin wrote: > > Starting with this very trivial C program: > > > > #include > > #include > > > > int main(void) { > >printf("Zstandard v%d\n", ZSTD_versionNumber()); > > } > > > > and

Re: Aren't Windows System Error popups meant to be disabled in Cygwin?

2024-01-31 Thread Brian Inglis via Cygwin
On 2024-01-31 06:40, David Allsopp via Cygwin wrote: Starting with this very trivial C program: #include #include int main(void) { printf("Zstandard v%d\n", ZSTD_versionNumber()); } and compiling with x86_64-w64-mingw32-gcc -o test.exe test.c -lzstd when I then run ./test.exe, I get

Re: Aren't Windows System Error popups meant to be disabled in Cygwin?

2024-01-31 Thread marco atzeri via Cygwin
On Wed, Jan 31, 2024 at 2:41 PM David Allsopp via Cygwin wrote: > > Starting with this very trivial C program: > > #include > #include > > int main(void) { > printf("Zstandard v%d\n", ZSTD_versionNumber()); > } > > and compiling with > > x86_64-w64-mingw32-gcc -o test.exe test.c -lzstd > >

Re: Aren't Windows System Error popups meant to be disabled in Cygwin?

2024-01-31 Thread René Berber via Cygwin
On 1/31/2024 7:40 AM, David Allsopp via Cygwin wrote: Starting with this very trivial C program: #include #include int main(void) { printf("Zstandard v%d\n", ZSTD_versionNumber()); } and compiling with x86_64-w64-mingw32-gcc -o test.exe test.c -lzstd when I then run ./test.exe, I get

Aren't Windows System Error popups meant to be disabled in Cygwin?

2024-01-31 Thread David Allsopp via Cygwin
Starting with this very trivial C program: #include #include int main(void) { printf("Zstandard v%d\n", ZSTD_versionNumber()); } and compiling with x86_64-w64-mingw32-gcc -o test.exe test.c -lzstd when I then run ./test.exe, I get the Windows critical-error-handler dialog stating "The