[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gzip zgrep-signal failure on Fedora 15 in an Emacs shell window
From: |
Paul Eggert |
Subject: |
Re: gzip zgrep-signal failure on Fedora 15 in an Emacs shell window |
Date: |
Wed, 02 Nov 2011 17:29:47 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
On 11/02/11 14:49, Eric Blake wrote:
> Another portability concern - with newer ksh, and allowed by POSIX,
> a child that exits due to a signal causes $? to be 269, not 141.
Thanks. Plus, POSIX doesn't require SIGPIPE to be 13, so the
141 is unportable for that reason too. I pushed this:
* tests/zgrep-signal: Don't assume exit status 141 on PIPE signal.
Problem reported by Eric Blake in
<http://lists.gnu.org/archive/html/bug-gzip/2011-11/msg00007.html>.
diff --git a/tests/zgrep-signal b/tests/zgrep-signal
index e19293a..3260875 100644
--- a/tests/zgrep-signal
+++ b/tests/zgrep-signal
@@ -43,13 +43,14 @@ write_to_dangling_pipe () {
) | : || framework_failure_
}
-st=$(write_to_dangling_pipe cat f.gz f.gz)
-test "$st" = 141 || framework_failure_ 'signal handling busted on this host'
+signal_status=$(write_to_dangling_pipe cat f.gz f.gz)
+test 128 -lt $signal_status ||
+ framework_failure_ 'signal handling busted on this host'
fail=0
st=$(write_to_dangling_pipe zgrep a f.gz f.gz)
-test "$st" = 141 || fail=1
+test $st = $signal_status || fail=1
Exit $fail
- FreeBSD vs. Debian behavior discrepancy, Michaƫl Guitton, 2011/11/02
- Re: FreeBSD vs. Debian behavior discrepancy, Paul Eggert, 2011/11/02
- Re: FreeBSD vs. Debian behavior discrepancy, Jim Meyering, 2011/11/02
- Re: FreeBSD vs. Debian behavior discrepancy, Paul Eggert, 2011/11/02
- gzip zgrep-signal failure on Fedora 15 in an Emacs shell window, Paul Eggert, 2011/11/02
- Re: gzip zgrep-signal failure on Fedora 15 in an Emacs shell window, Eric Blake, 2011/11/02
- Re: gzip zgrep-signal failure on Fedora 15 in an Emacs shell window, Paul Eggert, 2011/11/02
- Re: gzip zgrep-signal failure on Fedora 15 in an Emacs shell window, Eric Blake, 2011/11/02
- Re: gzip zgrep-signal failure on Fedora 15 in an Emacs shell window,
Paul Eggert <=