Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/kill Alter error messages so they no longer claim that b...
details: https://anonhg.NetBSD.org/src/rev/cc6db3c42faf
branches: trunk
changeset: 366154:cc6db3c42faf
user: kre <kre%NetBSD.org@localhost>
date: Mon May 16 10:53:14 2022 +0000
description:
Alter error messages so they no longer claim that bad input is illegal.
diffstat:
bin/kill/kill.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 6cd553cd41e0 -r cc6db3c42faf bin/kill/kill.c
--- a/bin/kill/kill.c Mon May 16 10:52:09 2022 +0000
+++ b/bin/kill/kill.c Mon May 16 10:53:14 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kill.c,v 1.32 2020/08/30 19:35:09 kre Exp $ */
+/* $NetBSD: kill.c,v 1.33 2022/05/16 10:53:14 kre Exp $ */
/*
* Copyright (c) 1988, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)kill.c 8.4 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: kill.c,v 1.32 2020/08/30 19:35:09 kre Exp $");
+__RCSID("$NetBSD: kill.c,v 1.33 2022/05/16 10:53:14 kre Exp $");
#endif
#endif /* not lint */
@@ -181,7 +181,7 @@
if (*argv[0] == '%') {
pid = getjobpgrp(*argv);
if (pid == 0) {
- warnx("illegal job id: %s", *argv);
+ warnx("bad job id: %s", *argv);
errors = 1;
continue;
}
@@ -221,7 +221,7 @@
/* check for correctly parsed number */
if (*ep || n <= INT_MIN || n >= INT_MAX )
- errx(EXIT_FAILURE, "illegal signal number: %s", sn);
+ errx(EXIT_FAILURE, "bad signal number: %s", sn);
/* NOTREACHED */
return (int)n;
@@ -239,7 +239,7 @@
/* check for correctly parsed number */
if (ep == s || *ep || n == INTMAX_MIN || n == INTMAX_MAX ||
(pid_t)n != n || errno != 0) {
- warnx("illegal process%s id: '%s'", (n < 0 ? " group" : ""), s);
+ warnx("bad process%s id: '%s'", (n < 0 ? " group" : ""), s);
return -1;
}
Home |
Main Index |
Thread Index |
Old Index