From 0eaa993ae64d75c7b9da62c99e9e5f617b6a248d Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Sat, 18 Dec 2010 03:25:49 +0000 Subject: wc: fix a possible hang with --files0-from * 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wc.c b/src/wc.c index a1922baf9..ae29f1054 100644 --- 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 (); -- cgit v1.2.3-70-g09d2