X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 699433858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1707164544; bh=beOtOyY7Q6FixcGBJR6cBYTS+CIRZz/vveRPHk7Gmzk=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=ax1rRoUsod0AM7xC8JW2iXfzEvxjDdTTrpzNE8c7oKM50dntUA9J2MkDmpHxb72QO tOhG30loyVTiIcfLjfxOwHg584nyibRPYMuFM7MJMKl9i+lb4BiL1wslhUqnJ/4suY WJAo6lTLZSO9KYrk3PhZdyPJyiLv42ZZxOMTZnJ8= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 48EBD3857C74 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 48EBD3857C74 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707164472; cv=none; b=apKmD9gZtSjorSKP1dFzU7HGnP7YaJaYDpX06ORBkVmWoNMgP7mnbEVUfBzeRhzJWs4ZLqDbeuRBcFilM2kTIAnXaLxV1sxWa8i3o2L7QffaYObZQLJYcYz3XKEsDQrKVdOPowTBinbHl3NyoSI0HcOE8yUNzIaGqnYpKmL9IVE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707164472; c=relaxed/simple; bh=B4IVJGIir3UG1SVWO2cnEowXb7Tg82WDn+/7hwL1UIQ=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=kgQfnvBbbxn2W5LGibo0RA9bLm3DY4d8EcxK5i14gJ/5vhPNw13vezKY0b517HLKQ9X2SMtzFhK9YB8poRc4r9hWyJ/AS86cD4MLVd34ZsECO30C8quIK+LIaGeemLQVaSgFICUOekh6xC7onvxPZfMUJmCY9anJJaukMmkdLwg= 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=1707164465; x=1707769265; h=to: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=X+01B2344EERQrXVCWPKGwxoEpb+EOVlUM4t17ucGV8=; b=tS8tnqyQo09Y7h4FxPwlSJ+mUyQGyxu5hnIV6kuJ9ISdfpfV0D3cRhdG3IJaSiesD2 evvysJXqzulm/ffFF9lFJ8jqB9dm/+UsjZ4B3O7tHuz6j9Q71vWFI7a9wm8z9yldNEsf JtRUbj0WLuy5xPk8NJyXT5kcLcMEucYJCBiuyken+VmEnciUAd3lsPCpHf7ztEdozuVk VOcbYoga5SSL9AEJncAjj8PBKAgn2tymS8wofRif0nBA+HLX6HyorEHAmsJvUshv4Wqq PTD77ZWUIcec/nxRLdL5anoYzMl/yJEr2k7HrW23qn8KBmiQV0jmzoacq35xSr6WMwhk lgoA== X-Gm-Message-State: AOJu0YxRFjbIerTYUE6jov9YkvuOJSNGWF76i5Ry525lb854M2h5Oq5K dMXC257j56wH+KYwMt9G6FLkN7Uy+ZbCE39VQl8W8vjLqXMlhcOFpA5vzugg+cnZIXk5Nx9Hn2a vkIXXcn4q/WgBorhRyemsuJS8mdRmL/qgVhrU7Kbng0ELccGk X-Google-Smtp-Source: AGHT+IEyzwS8FWc2IRQuMn66h1GoB5fMDkkK7mhew0YzbGR6yRjDzvwtqidaialFnHJhq0rsnR3UyGhMUVTR2O8hatc= X-Received: by 2002:adf:fe8d:0:b0:33a:f090:edd7 with SMTP id l13-20020adffe8d000000b0033af090edd7mr399287wrr.21.1707164464883; Mon, 05 Feb 2024 12:21:04 -0800 (PST) MIME-Version: 1.0 References: <16b354c2-bba4-40b8-8359-7eb9a79b3ee3 AT dronecode DOT org DOT uk> In-Reply-To: Date: Mon, 5 Feb 2024 20:20:26 +0000 Message-ID: Subject: Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?] To: cygwin AT cygwin DOT com X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: David Allsopp via Cygwin Reply-To: David Allsopp Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "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 parent's process error mode. Changing the thread > > error mode from the Cygwin default 3 (aka SEM_FAILCRITICALERRORS | > > SEM_NOGPFAULTERRORBOX) to 0 doesn't have any effect. > > [...etc.] Oh dear, what a mess! > MSYS2 has introduced the environment variable option CYGWIN=winjitdebug. > I backported this patch now. So default is back to propagating Cygwin's > error mode and if you want to reset the error mode of a non-Cygwin child > process back to OS default, just set the option, for instance, like > this: > > $ CYGWIN=winjitdebug env > > This patch will be in Cygwin 3.5.1. For the time being, it will be > available in the next test release cygwin-3.6.0-0.28.g918c3eda4176 as > well. This completely fixes it for us, thank you very much 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