diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-09-01 15:07:51 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-09-01 15:20:55 +0100 |
commit | 0d89a42bff15d80574190537cc47f2f0aba24830 (patch) | |
tree | 910f0b9229eec67c763bdad9feef9460f902c331 | |
parent | df9cd0a426a9b52ddfcd1c17e368a89fa3c6fbde (diff) | |
download | coreutils-0d89a42bff15d80574190537cc47f2f0aba24830.tar.xz |
build: avoid the use of strsignal() in split
... which is not available on some platforms,
and the replacement currently requires linking
with threading libraries.
* src/split.c (closeout): Remove the call to strsignal()
which is largely redundant anyway as sig2str()
is already used to map number to name in the error.
Reported by Bruno Haible on AIX 6.1 and 7.1
-rw-r--r-- | src/split.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/split.c b/src/split.c index 2962b6891..03b4c3304 100644 --- a/src/split.c +++ b/src/split.c @@ -384,8 +384,8 @@ closeout (FILE *fp, int fd, pid_t pid, char const *name) if (sig2str (sig, signame) != 0) sprintf (signame, "%d", sig); error (sig + 128, 0, - _("with FILE=%s, signal %s (%s) from command: %s"), - name, signame, strsignal (sig), filter_command); + _("with FILE=%s, signal %s from command: %s"), + name, signame, filter_command); } } else if (WIFEXITED (wstatus)) |