This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CygWin-1.7.3-1 fails to provide pipe. (merge back into trunk please)


my mistake, so i've done some more testing and found another bug to do with
fifo, i thought this patch had corrected. 

i get this error from tee.
tee: read error: Communication error on send

at

exec 3>&1 4>&2
tee $OUTPUT_LOG < $OUTPUT_PIPE >&3 &

regards william d.

p.s. Here is my test script

#!/bin/bash

OUTPUT_LOG=output.log
OUTPUT_PIPE=output.pipe

if [ ! -e $OUTPUT_PIPE ]; then
    mkfifo $OUTPUT_PIPE
fi

if [ -e $OUTPUT_LOG ]; then
    rm $OUTPUT_LOG
fi

exec 3>&1 4>&2
tee $OUTPUT_LOG < $OUTPUT_PIPE >&3 &
tpid=$!
exec > $OUTPUT_PIPE 2>&1

echo "This is on standard out"
echo "This is on standard err" >&2

exec 1>&3 3>&- 2>&4 4>&-
wait $tpid

rm $OUTPUT_PIPE


#Read more: http://www.travishartwell.net/blog/2006/08/19_2220#ixzz0lDjWKVfj


Larry Hall (Cygwin) wrote:
> 
> On 4/21/2010 8:42 PM, will.dutt wrote:
>> Christopher Faylor-8 wrote:
>>> On Tue, Apr 06, 2010 at 11:01:21AM -0400, Christopher Faylor wrote:
>>>> On Tue, Apr 06, 2010 at 04:10:28PM +0100, Dave Korn wrote:
>>>>> On 06/04/2010 15:15, Christopher Faylor wrote:
>>>>>> On Tue, Apr 06, 2010 at 07:55:19AM -0400, George Barrick wrote:
>>>
>>>> Thanks for tracking it down but the test case is probably simpler than
>> this.
>>>>
>>>>   $ mkfifo /tmp/fifo
>>>>   $ cat /tmp/fifo
>>>>
>>>> That demonstrates the problem.  I'll fix this ASAP.
>>>
>>> This should be fixed in the latest snapshot:
>>>
>>> http://cygwin.com/snapshots/
>>
>> when will this snapshot be incorporated back into cygwin, i also rely on
>> fifo working and for my latest 1.7.x install i had to source this
>> snapshot > to get it working.
> 
> <http://cygwin.com/ml/cygwin-announce/2010-04/msg00005.html>
> 
> Watch the announce list when you're looking for new releases.  In your
> case,
> there was a release the next day with the fix.  There's also been another
> release since then.
> 
> -- 
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 216 Dalton Rd.                          (508) 893-9889 - FAX
> Holliston, MA 01746
> 
> _____________________________________________________________________
> 
> A: Yes.
>> Q: Are you sure?
>>> A: Because it reverses the logical flow of conversation.
>>>> Q: Why is top posting annoying in email?
> 
> --
> 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
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/CygWin-1.7.3-1-fails-to-provide-pipe.-tp28150744p28323655.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]