projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e66948c
)
wc: fix a possible hang with --files0-from
author
Pádraig Brady
<P@draigBrady.com>
Sat, 18 Dec 2010 03:25:49 +0000
(
03:25
+0000)
committer
Pádraig Brady
<P@draigBrady.com>
Sun, 19 Dec 2010 00:40:27 +0000
(
00:40
+0000)
* src/wc.c (main): exit when we get a read error on
the --files0-from file, rather than retrying and
spinning the CPU
src/wc.c
patch
|
blob
|
history
diff --git
a/src/wc.c
b/src/wc.c
index
a1922ba
..
ae29f10
100644
(file)
--- a/
src/wc.c
+++ b/
src/wc.c
@@
-726,8
+726,8
@@
main (int argc, char **argv)
switch (ai_err)
{
case AI_ERR_READ:
- error (
0, errno, _("%s: read error"), quote (files_from));
-
skip_file = true
;
+ error (
EXIT_FAILURE, errno, _("%s: read error"),
+
quote (files_from))
;
continue;
case AI_ERR_MEM:
xalloc_die ();