From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56888 invoked by alias); 1 Aug 2019 16:04:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 56881 invoked by uid 89); 1 Aug 2019 16:04:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-104.4 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=blake, Blake X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.134) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Aug 2019 16:04:43 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N3Kc6-1iJJD11a1S-010PsH for ; Thu, 01 Aug 2019 18:04:41 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id E136AA805E7; Thu, 1 Aug 2019 18:04:40 +0200 (CEST) Date: Thu, 01 Aug 2019 16:04:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Regression (last snapshot) Message-ID: <20190801160440.GC11632@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20190729134700.GO11632@calimero.vinschen.de> <20190729152327.GQ11632@calimero.vinschen.de> <20190729154049.GR11632@calimero.vinschen.de> <8e57d4da-722d-1b9a-bd28-5f96ed182f6a@cornell.edu> <0a09679b-1a0f-613b-04c8-1a63da8a00c2@cornell.edu> <33aead20-540c-ee3b-0d38-ff053fbac040@dronecode.org.uk> <12269538-c387-1f1e-ab5a-b36b60d09937@cornell.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="G9m07da55tKJni3T" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-08/txt/msg00013.txt.bz2 --G9m07da55tKJni3T Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1123 On Aug 1 10:38, Eric Blake wrote: > On 8/1/19 10:30 AM, Ken Brown wrote: >=20 > >>> OK, when xwin-xdg-menu launches an application, it creates two pipes= =20 > >>> and sets > >>> the application's stdout and stderr to the write ends of those pipes.= =20=20 >=20 > > Well, I can't be sure that the pipes are responsible. It's just that=20 > > the existence of the pipes is the only difference I could spot between= =20 > > an ordinary terminal and a terminal started from xwin-xdg-menu. > >=20 > > Is it possible that the logging somehow slows things down or changes th= e=20 > > buffering, so that the grep process takes longer to complete? This=20 > > would be consistent with my theory that the broken pipe error doesn't=20 > > really represent a bug, but rather it reflects the fact that ls exits=20 > > before grep has finished writing. >=20 > Could it be a case of xwin-xdg-menu calling signal(SIGPIPE, SIG_IGN) or > similar, and accidentally letting grep inherit the ignored SIGPIPE? execve doesn't propagate the signal dispositions, they get reset to default. Corinna --=20 Corinna Vinschen Cygwin Maintainer --G9m07da55tKJni3T Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl1DDZgACgkQ9TYGna5E T6AiGhAAog1uqIDFvAwmJIfA/1DdaqsTtoJ44jLi9AvRMBaW7qH5CBxu2Lzo7RnF Hfxldf50oiV7rszV5gKIoAZ5lyzax+XbT4DwJNgRfFep0jCWxQ1L+K1XvV5R52T6 V1mShyG0yJ5PwBb9LE5roE9Wf1j2nCtWCVyW6gekmZ6cQriOqksCt2wSMRTcjcT4 3uxw/X2IJhEy1fsSl9Lt8yz83S4MsbSTosYv827NhkB2pm2xHIbvhz3RoBd5Edao 9etWQsEmoPnYsMBtsshqQHsDN8tvrWuqKZjdCYa0znrDhRf/XdfUIOJj4cdDFEG4 VyNT5O+ttj8l11Y33gte1Bg1tX22wrILbPv7BI7nWPLdL4JcUr4M7KCMy7jUtaw8 Rx/QliMISWg7MnpIQ/sqfomkpR+MSLurRhVEwJgyU+SycLda8uf5viTTzVce6pOl KzCGvwgHcouDpoeOMzzttzDw4glH4hVpVDr9gSE25L8nsbfi8o8pkqYeEW30T3Xr vS/x9khqv3b1vtuyg+SnboNR42Dj6+Wn6VZp01oKaFV0oZ6Flgs82K3fhusrSleq pbPJHGs3aSxf8reah/WTnXVE+iZDfAarfH5NEkS/vd+XgKC80kW/XRRZEdpS5g+k bi+v0gqo0tUHyykIsEFPA7OUMafvVBMV26RtiPrLP+NioEkHKDo= =RDnX -----END PGP SIGNATURE----- --G9m07da55tKJni3T--