[Top][All Lists]
[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
signature.asc
Description: OpenPGP digital signature
- [patch] fix "broken pipe" message from lseek test, Ben Pfaff, 2010/02/20
- Re: [patch] fix "broken pipe" message from lseek test, Bruno Haible, 2010/02/20
- Re: [patch] fix "broken pipe" message from lseek test, Ben Pfaff, 2010/02/20
- Re: [patch] fix "broken pipe" message from lseek test,
Eric Blake <=
- Re: [patch] fix "broken pipe" message from lseek test, Bruno Haible, 2010/02/20
- Re: [patch] fix "broken pipe" message from lseek test, Ben Pfaff, 2010/02/21
- Re: [patch] fix "broken pipe" message from lseek test, Bruno Haible, 2010/02/21
- portability of 'printf' command, Bruno Haible, 2010/02/21
- Re: portability of 'printf' command, Bob Friesenhahn, 2010/02/21
- Re: portability of 'printf' command, Thomas Dickey, 2010/02/22
- Re: portability of 'printf' command, Bob Friesenhahn, 2010/02/21
- Re: portability of 'printf' command, Thomas Dickey, 2010/02/22
- Re: portability of 'printf' command, Ben Pfaff, 2010/02/21
- Re: [patch] fix "broken pipe" message from lseek test, Eric Blake, 2010/02/22