From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 197C63858404; Sat, 3 Feb 2024 19:19:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 197C63858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706987990; bh=a2D6kDolvdqg7C5cLrzZl7UF5I6tAgW6oLbSfYXRb3w=; h=From:To:Subject:Date:From; b=SXT8VfKp9GiEpnyEIGlZzchj4IJZNPLJtfPEjutfXK9CLVfhHOtcZ3n8OHTD4vZCm uR2UoIT/fKcsxbLYffgIwmjkPXsHHRNJCuAAJ2SiLBgcRFWU+o6fPFKueFkHJT44Uz 3zwEyjclwS1MkLBpvptTaYbAxyCzQiQFDFz8yZjo= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: document new winjitdebug option X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/main X-Git-Oldrev: cb34100be86767ff730c7d26b069810f2da1fc56 X-Git-Newrev: 918c3eda4176191733d9732dd7c5b0fc78c5a134 Message-Id: <20240203191950.197C63858404@sourceware.org> Date: Sat, 3 Feb 2024 19:19:49 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D918c3eda417= 6191733d9732dd7c5b0fc78c5a134 commit 918c3eda4176191733d9732dd7c5b0fc78c5a134 Author: Corinna Vinschen AuthorDate: Sat Feb 3 19:54:31 2024 +0100 Commit: Corinna Vinschen CommitDate: Sat Feb 3 20:03:12 2024 +0100 Cygwin: document new winjitdebug option =20 Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/release/3.5.1 | 10 ++++++++-- winsup/doc/cygwinenv.xml | 10 ++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/release/3.5.1 b/winsup/cygwin/release/3.5.1 index 7776d120fbc2..81945dbda58a 100644 --- a/winsup/cygwin/release/3.5.1 +++ b/winsup/cygwin/release/3.5.1 @@ -1,8 +1,14 @@ -Bug Fixes ---------- +Fixes: +------ =20 - Fix exit code for non-cygwin process running in console. The bug was introduced in 3.5.0. =20 - Make the interface names handled by if_nametoindex() and if_indextoname() consistent with that of if_nameindex(). + +- Revert error handling for non-Cygwin child processes to use Cygwin's + error mode by default. Resetting the error mode to the OS default + error mode is now possible by using the new CYGWIN environment variable + option "winjitdebug". + Addresses: https://cygwin.com/pipermail/cygwin/2024-February/255305.html diff --git a/winsup/doc/cygwinenv.xml b/winsup/doc/cygwinenv.xml index 05672c404ef1..3c69d5e4541c 100644 --- a/winsup/doc/cygwinenv.xml +++ b/winsup/doc/cygwinenv.xml @@ -93,6 +93,16 @@ line (truncated to ~32K) will be passed on any processes= that it creates in addition to the normal UNIX argv list. Defaults to not set. =20 + +(no)winjitdebug - if set, non-Cygwin executables +started from a Cygwin process will have their error mode reset to the +system default. That means, if they don't call SetErrorMode() explicitl, +the OS will display error dialog boxes in the GUI if some fatal error +occurs. Defaults to not set, so fatal errors in a non-Cygwin child +process will just result in an error code be propagated back to the +parent process. + + winsymlinks:{lnk,native,nativestrict,sys}