]> git.ipfire.org Git - thirdparty/coreutils.git/commit
split: exit when we can no longer write to a --filter
authorPádraig Brady <P@draigBrady.com>
Fri, 20 May 2011 00:26:41 +0000 (01:26 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 25 May 2011 23:12:05 +0000 (00:12 +0100)
commit6eec064597c2f440c51146cac85dc2326a0e0cda
tree936a674ace7b410ae287fa8bb709b46ca39b539f
parent5908e29e825286121c69f5c10c313ccae6860fa7
split: exit when we can no longer write to a --filter

* src/split.c (bytes_split): Stop reading when we
can no longer write to a child process.
(lines_rr): Likewise.
(lines_bytes_split): No change is made here since
input is bounded by the original file size.
* test/split/filter: Add test cases.
src/split.c
tests/split/filter