[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: |
Bruno Haible |
Subject: |
Re: [patch] fix "broken pipe" message from lseek test |
Date: |
Sun, 21 Feb 2010 03:56:42 +0100 |
User-agent: |
KMail/1.9.9 |
Eric Blake wrote:
> 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
I like this too, in this case.
But we rely on the 'trap - SIGPIPE' command in gnulib-tool. This code has a
20-line comment and *still* does not work??
Ben Pfaff wrote:
> I still see the "broken pipe" error with it.
Could you please investigate, by using strace, looking at signal masks of
processes, etc.? This "broken pipe" issue in bash is becoming extremely
unsatisfying. We have the world-class shell programming experts on this
mailing list and *still* don't understand how SIGPIPE works?!
Bruno
- [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, 2010/02/20
- Re: [patch] fix "broken pipe" message from lseek test,
Bruno Haible <=
- 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