[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?!


reply via email to

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