diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2015-04-02 20:56:01 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2015-04-02 20:56:01 +0000 |
commit | 4a19291801e8fbf80b6361b94c68307792faf0b9 (patch) | |
tree | c363fe29772b0fe6a5e31fe9114f151eb6e19b11 /usr.bin/sort/sort.c | |
parent | 97c88f7e36fc58d4c4584c289f23f8db8f4cd4ed (diff) |
Add signal name instead of array index (which is not the signal number)
to sigaction error message.
with input by and ok millert@
Diffstat (limited to 'usr.bin/sort/sort.c')
-rw-r--r-- | usr.bin/sort/sort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sort/sort.c b/usr.bin/sort/sort.c index ce36ced1ee6..00536e07428 100644 --- a/usr.bin/sort/sort.c +++ b/usr.bin/sort/sort.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sort.c,v 1.69 2015/04/02 12:43:08 millert Exp $ */ +/* $OpenBSD: sort.c,v 1.70 2015/04/02 20:56:00 tobias Exp $ */ /*- * Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org> @@ -404,7 +404,7 @@ set_signal_handler(void) for (i = 0; signals[i] != 0; i++) { if (sigaction(signals[i], &sa, NULL) < 0) { - warn("sigaction(%d)", i); + warn("sigaction(%s)", strsignal(signals[i])); continue; } } |