mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
Mark a warning as such. Without this, it isn't obvious whether
killall stopped after failing to kill one process or whether it kept going.
This commit is contained in:
parent
aaadd56a31
commit
a79a73ab1b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96976
|
@ -366,8 +366,8 @@ main(int ac, char **av)
|
||||||
killed++;
|
killed++;
|
||||||
if (!dflag && !sflag) {
|
if (!dflag && !sflag) {
|
||||||
if (kill(thispid, sig) < 0 /* && errno != ESRCH */ ) {
|
if (kill(thispid, sig) < 0 /* && errno != ESRCH */ ) {
|
||||||
warn("kill -%s %d", upper(sys_signame[sig]),
|
warn("warning: kill -%s %d",
|
||||||
thispid);
|
upper(sys_signame[sig]), thispid);
|
||||||
errors = 1;
|
errors = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue