]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: avoid the use of strsignal() in split
authorPádraig Brady <P@draigBrady.com>
Thu, 1 Sep 2011 14:07:51 +0000 (15:07 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 1 Sep 2011 14:20:55 +0000 (15:20 +0100)
... 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

src/split.c

index 2962b68910432311293d54fe659ff2442056362f..03b4c3304496366a090059a8e0cb2dd54e251620 100644 (file)
@@ -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))