bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] fix "broken pipe" message from lseek test


From: Eric Blake
Subject: Re: [patch] fix "broken pipe" message from lseek test
Date: Sat, 20 Feb 2010 14:28:45 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

According to Bruno Haible on 2/20/2010 1:23 PM:
> Hi Ben,
> 
> Below is a proposed fix (untested).

Or maybe this would be better, by creating a subsidiary process to drain
off the pipe (at which point, you have to be careful about how $? is
tested).  Also untested, but shorter than Bruno's proposal, and does not
have to worry about shell signal handling (which is somewhat difficult to
do portably):

> -             && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then

test `echo hi | { ./conftest$ac_exeext; echo $?; cat > /dev/null; }` = 1

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]