delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/20/12:08:34

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 20 Aug 2008 12:07:46 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin 1.7.0-28: Broken pipe signal broken?
Message-ID: <20080820160746.GB9452@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
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> <1KVLws-1iowvw0 AT fwd25 DOT aul DOT t-online DOT de>
MIME-Version: 1.0
In-Reply-To: <1KVLws-1iowvw0@fwd25.aul.t-online.de>
User-Agent: Mutt/1.5.16 (2007-06-09)
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

On Tue, Aug 19, 2008 at 09:48:14AM +0200, Christian Franke wrote:
>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.

I think this is fixed now.  I spent a lot of time trying to get this
to work exactly like linux but Windows thwarted me.  It should now, at
least, behave like 1.5.*.

cgf

--
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