delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/19/03:49:05

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20080819032227.GC4204@ednor.casa.cgf.cx>
References: <1KV3KS-06K7k00 AT fwd26 DOT aul DOT t-online DOT de> <20080819030025 DOT GA4204 AT ednor DOT casa DOT cgf DOT cx> <20080819032227 DOT GC4204 AT ednor DOT casa DOT cgf DOT cx>
Date: Tue, 19 Aug 2008 09:48:14 +0200
Reply-To: "Christian Franke" <Christian DOT Franke AT t-online DOT de>
To: cygwin AT cygwin DOT com
X-UMS: email
X-Mailer: TOI Kommunikationscenter V9-2-10
Subject: Re: cygwin 1.7.0-28: Broken pipe signal broken?
From: "Christian Franke" <Christian DOT Franke AT t-online DOT de>
Message-ID: <1KVLws-1iowvw0@fwd25.aul.t-online.de>
X-ID: SI8WdoZ6whDNxNPuBZCru4ZF3pspKZcghBMrc4yTbyLloyNnF9w0ar15rLju5piQ6y AT t-dialin DOT net
X-TOI-MSGID: e1450b59-0733-4b47-a50b-f060b206ba6c
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Christopher Faylor wrote:
> On Mon, Aug 18, 2008 at 11:00:25PM -0400, Christopher Faylor wrote:
> >On Mon, Aug 18, 2008 at 01:55:20PM +0200, Christian Franke wrote:
> >>Result on 1.5.25-15:
> >>
> >>$ ./testpipe | dd bs=1 count=1 >/dev/null 2>/dev/null
> >>[SIGPIPE!]write = -1, errno = 32
> >>
> >>Result on 1.7.0-28:
> >>
> >>$ ./testpipe | dd bs=1 count=1 >/dev/null 2>/dev/null
> >>write = 0, errno = 32
> >
> >Yawn.  I almost went to bed without remembering into this.
> 
> Yeah.  "remembering into"  I obviously am tired.  What are the
> odds that this fix actually fixes the problem?
> 

It fixes the missing signal, but not the write() return value.

Result with cygwin1-20080818.dll:

$ ./testpipe | dd bs=1 count=1 >/dev/null 2>/dev/null
[SIGPIPE!]write = 0, errno = 32

Unfortunately, this makes things worse: bash now exits silently on
$(...) commands, so 'bash --login' fails.


Christian




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019