public inbox for
help / color / mirror / Atom feed
From: Corinna Vinschen <>
Subject: [newlib-cygwin] cygwin: use CREATE_DEFAULT_ERROR_MODE in spawn
Date: Thu, 10 Dec 2020 09:58:17 +0000 (GMT)	[thread overview]
Message-ID: <> (raw);h=21ec498d7f91285018e74f9767fe46cebace682a

commit 21ec498d7f91285018e74f9767fe46cebace682a
Author: Jeremy Drake via Cygwin-patches <>
Date:   Wed Dec 9 11:27:11 2020 -0800

    cygwin: use CREATE_DEFAULT_ERROR_MODE in spawn
    This allows native processes to get Windows-default error handling
    behavior (such as invoking the registered JIT debugger).

 winsup/cygwin/ | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/winsup/cygwin/ b/winsup/cygwin/
index 92d190d1a..83b216f52 100644
--- a/winsup/cygwin/
+++ b/winsup/cygwin/
@@ -431,6 +431,13 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
+      /* Add CREATE_DEFAULT_ERROR_MODE flag for non-Cygwin processes so they
+	 get the default error mode instead of inheriting the mode Cygwin
+	 uses.  This allows things like Windows Error Reporting/JIT debugging
+	 to work with processes launched from a Cygwin shell. */
+      if (!real_path.iscygexec ())
       /* We're adding the CREATE_BREAKAWAY_FROM_JOB flag here to workaround
 	 issues with the "Program Compatibility Assistant (PCA) Service".
 	 For some reason, when starting long running sessions from mintty(*),

                 reply	other threads:[~2020-12-10  9:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).