From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103148 invoked by alias); 1 Aug 2019 15:38:53 -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 103141 invoked by uid 89); 1 Aug 2019 15:38:52 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,UNSUBSCRIBE_BODY autolearn=no version=3.3.1 spammy=blake, Blake X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Aug 2019 15:38:51 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9B0C830DB67B for ; Thu, 1 Aug 2019 15:38:50 +0000 (UTC) Received: from [10.3.116.93] (ovpn-116-93.phx2.redhat.com [10.3.116.93]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4AA56600C4 for ; Thu, 1 Aug 2019 15:38:50 +0000 (UTC) Subject: Re: Regression (last snapshot) To: cygwin@cygwin.com References: <20190722164509.GG21169@calimero.vinschen.de> <4b59209a91e8384ec000e2724696791c@smtp-cloud7.xs4all.net> <935d8ce5-fd5c-3010-4664-bb2dc9b7ca2f@cornell.edu> <20190729084552.GL11632@calimero.vinschen.de> <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> From: Eric Blake Openpgp: preference=signencrypt Message-ID: Date: Thu, 01 Aug 2019 15:38:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <12269538-c387-1f1e-ab5a-b36b60d09937@cornell.edu> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mJAxQtUvy1vXnNMJfAzREq2OBZHXyeXCX" X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00010.txt.bz2 --mJAxQtUvy1vXnNMJfAzREq2OBZHXyeXCX Content-Type: multipart/mixed; boundary="bEFHuahF124WhlBRLmNXHAKCAZYTvfy7w"; protected-headers="v1" From: Eric Blake To: cygwin@cygwin.com Message-ID: Subject: Re: Regression (last snapshot) References: <20190722164509.GG21169@calimero.vinschen.de> <4b59209a91e8384ec000e2724696791c@smtp-cloud7.xs4all.net> <935d8ce5-fd5c-3010-4664-bb2dc9b7ca2f@cornell.edu> <20190729084552.GL11632@calimero.vinschen.de> <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> In-Reply-To: <12269538-c387-1f1e-ab5a-b36b60d09937@cornell.edu> --bEFHuahF124WhlBRLmNXHAKCAZYTvfy7w Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Content-length: 1237 On 8/1/19 10:30 AM, Ken Brown wrote: >>> 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 > 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 the= =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. Could it be a case of xwin-xdg-menu calling signal(SIGPIPE, SIG_IGN) or similar, and accidentally letting grep inherit the ignored SIGPIPE? When SIGPIPE is not ignored, grep's failure to write to a pipe causes termination before the failed write completes; but when it is ignored, grep sees EPIPE from the failed write and reports that. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org --bEFHuahF124WhlBRLmNXHAKCAZYTvfy7w-- --mJAxQtUvy1vXnNMJfAzREq2OBZHXyeXCX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 488 -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAl1DB4kACgkQp6FrSiUn Q2pEjQf+M5+RvlOb1mssCDhYmhfBJcpoT9zWsKevFmvEfkrmpBQDmR9aLXaG7ylI mE3sSEk54tOimFlVhrwbbADFr7i2fU9SOkVUjZGzYh0CrBu2FHqAn/VhVG2sHF2K MD3Wr+J01669lmFnb8G7lHMW958owTMoF4cuncGA1IyUKpEOtfNLAILq+qAMXNZ1 9s33ocZVcd6Zbvurc68rVLdczuqh2d9Nx8+CcNxMGnie9v9k86/4+zX+ihyCpo8f wDqfRprSDBmI4OE0CmrmRv46kotPgrfJaEsuUhqGUIkkaUlew1PLycPxO0qkBhl6 8LvufvSXANr2qbPyBblAOQeeiHuX3Q== =Q3lJ -----END PGP SIGNATURE----- --mJAxQtUvy1vXnNMJfAzREq2OBZHXyeXCX--