xz-analysis-mirror/src
Lasse Collin cff070aba6 Fix exit status of xzgrep when grepping binary files.
When grepping binary files, grep may exit before it has
read all the input. In this case, gzip -q returns 2 (eating
SIGPIPE), but xz and bzip2 show SIGPIPE as the exit status
(e.g. 141). This causes wrong exit status when grepping
xz- or bzip2-compressed binary files.

The fix checks for the special exit status that indicates SIGPIPE.
It uses kill -l which should be supported everywhere since it
is in both SUSv2 (1997) and POSIX.1-2008.

Thanks to James Buren for the bug report.
2012-02-22 14:02:34 +02:00
..
common Workaround unusual SIZE_MAX on SCO OpenServer. 2011-08-09 21:16:44 +03:00
liblzma liblzma: Fix invalid free() in the threaded encoder. 2011-10-23 17:08:14 +03:00
lzmainfo Add underscores to attributes (__attribute((__foo__))). 2011-05-17 11:54:38 +03:00
scripts Fix exit status of xzgrep when grepping binary files. 2012-02-22 14:02:34 +02:00
xz xz: Show minimum required XZ Utils version in xz -lvv. 2011-11-07 13:07:52 +02:00
xzdec Add underscores to attributes (__attribute((__foo__))). 2011-05-17 11:54:38 +03:00
Makefile.am Build: Add options to disable individual command line tools. 2010-10-08 15:25:45 +03:00