X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-id:content-transfer-encoding :mime-version; q=dns; s=default; b=XE/H/oAHb4fLqE2MQIfb7sAJF+sv3 7fRlzpA5jlJxHB8o2bpYcIt83VSWZANR3ew02pfR/+Xoga3CTd6aarewBZvKZVXt VpdkuImInn8d3z7wyeK2Idl9OS8R/ejexXisWFtVSLnRC62DBBWBSOfojCflj4GP u5kOP4awUxYhZs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-id:content-transfer-encoding :mime-version; s=default; bh=lG/Gi72wJC1iuK7jiqQvfyjCCAA=; b=jFX TzN44s+FHYXpecAdwlhr3B9ijchOzdccxQEiotAQgp71bGQi2VBkYxsNPZORg177 gYYB8iqeNzWJNB4HKvVvBDXigJ2Hj76NVDNuL6zh5cf5j03V9cD0Nu38Uu33THZJ r7wm//U9LlLLz1mhmrAc6DVnwVFWiMfqaYmmf1V4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: NAM02-CY1-obe.outbound.protection.outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DrjofS2GnXr3V4aIlBcY7xYprTDuiCMitDEJ88rvzhONuaSsYEhHkP2EK/Dj2XC83CZDozwtWP8l0d38vXPV/DTdFwchsU1Zqdg2rI2QUzeWgLpSXMYACRtG2nLjH0Y0NKz1lBUZT6G1O/v2nVvCdVj4hj02gBJAQStc6nSRCtDYo7wELiSFJKGbsaoolYLkjwXxX7yN26zwLq3xgVSf+7Se04QHoKESLgOUXdh5TVFh32fIePZRNV/CdOb5NSyiN0DCKMRnuNxseygnkFt3XY4cAeK9M6k6QKx9xWm+2++TbpFgE8JLl4PCg71ev8SoA1ws2MSvhTx9RLIOs977BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=07luemviHRP7aCWYES6b39u0c8FFtNsUupRUEDJF+Xc=; b=nIvgJqOJPnX3qgyilnken9YtHjhcMkkIWl5Ns0q5YyyxTpOxUX2qYjODw+vu2QoqJAaMOjspgKg3lZSwb1lYRz6jf/i/lAMxgoM8FI+qW9pjR0UC2DmX1RQ7piGePsDdswP5epOwPUWveS1BNASn/VMYyfxn23HaE+v0hkGBEFx5/+1BlBn8b8E/1/aHweFon0COG0XgUWo1/5AP3OlCgioEDQrJTszOytJdbDskFAft3XAHus1jL/1HU6xC6SCnB17SKlNZbO3R73c5ANPEZKBTMZSPzqWoT5d7Ini1SBUCpoORaN+5UivXFy1bSDpwLaQ/iQO4JDg8RxFMLX7jZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=cornell.edu;dmarc=pass action=none header.from=cornell.edu;dkim=pass header.d=cornell.edu;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=07luemviHRP7aCWYES6b39u0c8FFtNsUupRUEDJF+Xc=; b=dDbFcLA76TZ5cnG6xLpXmFVblBK6auCcKDkzYtFM4fLEYMUmpvJJXuWrfyNmCauvUAaaw1wUjbKI3klAI325nYnyAPg/qKbssR0gEtXIJqrPKtNecSkLgFcOm+CoMCexiJ0pFofhDuxm+jcvCzriSp3uGQse3+tCDhggzKs7BFs= From: Ken Brown To: "cygwin AT cygwin DOT com" Subject: Re: Regression (last snapshot) Date: Thu, 1 Aug 2019 21:17:44 +0000 Message-ID: <19e73527-cb9a-a106-a57a-2895b8a520c9@cornell.edu> References: <20190729134700 DOT GO11632 AT calimero DOT vinschen DOT de> <20190729152327 DOT GQ11632 AT calimero DOT vinschen DOT de> <20190729154049 DOT GR11632 AT calimero DOT vinschen DOT de> <8e57d4da-722d-1b9a-bd28-5f96ed182f6a AT cornell DOT edu> <0a09679b-1a0f-613b-04c8-1a63da8a00c2 AT cornell DOT edu> <33aead20-540c-ee3b-0d38-ff053fbac040 AT dronecode DOT org DOT uk> <12269538-c387-1f1e-ab5a-b36b60d09937 AT cornell DOT edu> <20190801160440 DOT GC11632 AT calimero DOT vinschen DOT de> In-Reply-To: <20190801160440.GC11632@calimero.vinschen.de> user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown AT cornell DOT edu; x-ms-oob-tlc-oobclassifiers: OLM:8882; received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 Content-Type: text/plain; charset="utf-8" Content-ID: <66ED851EC8399C4AB499477098E26E8F AT namprd04 DOT prod DOT outlook DOT com> MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ksb2 AT cornell DOT edu X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x71LILcJ026839 On 8/1/2019 12:04 PM, Corinna Vinschen wrote: > On Aug 1 10:38, Eric Blake wrote: >> On 8/1/19 10:30 AM, Ken Brown wrote: >> >>>>> OK, when xwin-xdg-menu launches an application, it creates two pipes >>>>> and sets >>>>> the application's stdout and stderr to the write ends of those pipes. >> >>> Well, I can't be sure that the pipes are responsible. It's just that >>> the existence of the pipes is the only difference I could spot between >>> an ordinary terminal and a terminal started from xwin-xdg-menu. >>> >>> Is it possible that the logging somehow slows things down or changes the >>> buffering, so that the grep process takes longer to complete? This >>> would be consistent with my theory that the broken pipe error doesn't >>> really represent a bug, but rather it reflects the fact that ls exits >>> 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? > > execve doesn't propagate the signal dispositions, they get reset to > default. I just realized, as a result of Eric's comment, that the explanation I've been pushing is nonsense. What I've been explaining is why there would be a broken pipe, and therefore a SIGPIPE and EPIPE. But I now see that that's not the issue. The issue is whether grep gets the SIGPIPE and terminates before it has a chance to see the EPIPE. So if grep isn't ignoring SIGPIPE, the only other possibility I can think of is that grep isn't receiving SIGPIPE, or at least that there's a delay before it receives it. Why would that happen only in terminals started by xwin-xdg-menu? Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple