From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121670 invoked by alias); 2 Aug 2019 15:04:17 -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 121662 invoked by uid 89); 2 Aug 2019 15:04:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-104.3 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1550 X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (217.72.192.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Aug 2019 15:04:15 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MsZ3N-1iEGiE0b51-00u1jg for ; Fri, 02 Aug 2019 17:04:13 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 6BA94A80656; Fri, 2 Aug 2019 17:04:12 +0200 (CEST) Date: Fri, 02 Aug 2019 15:04:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Regression (last snapshot) Message-ID: <20190802150412.GE11632@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <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> <20190801160440.GC11632@calimero.vinschen.de> <19e73527-cb9a-a106-a57a-2895b8a520c9@cornell.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="R0SsnouPYaG+7rP6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-08/txt/msg00022.txt.bz2 --R0SsnouPYaG+7rP6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1564 On Aug 2 14:34, Ken Brown wrote: > On 8/1/2019 10:32 PM, Ken Brown wrote: > > On 8/1/2019 5:17 PM, Ken Brown wrote: > >> On 8/1/2019 12:04 PM, Corinna Vinschen wrote: > >>> On Aug 1 10:38, Eric Blake wrote: > >>>> 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. > >> > > I just built a version of grep in which I added 'signal(SIGPIPE, SIG_DF= L)', and > > the error is gone. So it looks like grep has in fact been receiving SI= GPIPE, > > and for some reason it is not using the default signal handler for SIGP= IPE in a > > terminal started by xwin-xdg-menu. Could this be a gtk issue? Does it= mess > > with the signal handlers? >=20 > I think I've finally got it. >=20 > First of all, here's what POSIX says about signal handlers after an exec: >=20 > "Signals set to the default action (SIG_DFL) in the calling process=20 > image shall be set to the default action in the new process image.=20 > Except for SIGCHLD, signals set to be ignored (SIG_IGN) by the calling=20 > process image shall be set to be ignored by the new process image.=20 > Signals set to be caught by the calling process image shall be set to=20 > the default action in the new process image (see )." Oh, I see. I misread the exceve man page. Only signals which are caught will be reset to SIG_DFL. Sorry for the noise. Corinna --=20 Corinna Vinschen Cygwin Maintainer --R0SsnouPYaG+7rP6 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl1EUOwACgkQ9TYGna5E T6DOkg//TveeWdxoyhK7WMK2u33MEMn1O65FYHrifrnaJ3XJdbp/fyxtFOexwQ+d 361XjKBKvzYxfZdquVzgf/ZuKvkavQK0o/U398O0CEqREIGidk4DraGHl/Wda6JF BgRYfUmisWdO9ovppw1rIg/DzQ7WlUnidQrmGc+zVKPIUApVzYPyWoWzidUr2dV7 6Xye9RP4PoMXIGymgSm+64c2W8Ny6L03UEZ7N0HDrheZ+8Y5RSP5rqDlDSirWFWU HMsebg6K44feCg8i7EzFzF9NP6l0kLq90K5+Dsh+NKn9WsddGAJpRCUn0YGuArIh yyJ5081cI3/eU840bVqh2CCWIJeWZ7cU5T77cpMSNRabxC9FDOX67W78T8KpG4IJ 5oZ0ITQBROaHOmlInBsGJLE0rQelYchxcZ6GLAHHRstolUR/HKnR+/8SdFDYKK0k rsMNEKxj+9k3qCCJ8c4FuzWr/eujhacwW0vRrw4JAiOeKIJQN+AmytKuN5lxrGoq vu+GgQy3o872ySXI1gv+uuvUVs+dem94L4RnBMwSxBnWLVHM/bgyujsC8Bs9gKI9 nKfcqY0j2S0Z82t/7nwLnku2CeA3PAFltoUvWh1usTyCGXKZyniNfDiDubpZE4dz o30fBlcIqOGr2zESxZdkUJtwZ8gwA8Os7/VlH+7YBz09NKBfjdo= =NKbc -----END PGP SIGNATURE----- --R0SsnouPYaG+7rP6--