aboutsummaryrefslogtreecommitdiff
path: root/winsup/utils
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2023-03-15 21:50:32 +0100
committerCorinna Vinschen <corinna@vinschen.de>2023-03-15 22:08:04 +0100
commit3569e3577c9de2b3a5cffba40597d2755bf5aacd (patch)
tree5e5dcd58b418c1941b23e794c6c1efb31751faa3 /winsup/utils
parent07b5d3726fb9548d474751bed1a3aa00dba263e8 (diff)
downloadnewlib-3569e3577c9de2b3a5cffba40597d2755bf5aacd.zip
newlib-3569e3577c9de2b3a5cffba40597d2755bf5aacd.tar.gz
newlib-3569e3577c9de2b3a5cffba40597d2755bf5aacd.tar.bz2
Cygwin: kill(1): don't print spurious error message
Make kill -V and kill -l exit immediately, thus stopping to print "not enough arguments" accidentally. Fixes: ef48a2cad3704 ("* kill.cc (prog_name) New global variable.") Fixes: c49fa762631f9 ("* Makefile.in (kill.exe): Add as a specific target.") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/utils')
-rw-r--r--winsup/utils/kill.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc
index 04c9774..fc984c0 100644
--- a/winsup/utils/kill.cc
+++ b/winsup/utils/kill.cc
@@ -65,6 +65,7 @@ print_version ()
CYGWIN_VERSION_DLL_MAJOR % 1000,
CYGWIN_VERSION_DLL_MINOR,
strrchr (__DATE__, ' ') + 1);
+ exit (0);
}
static const char *
@@ -126,6 +127,7 @@ listsig (const char *in_sig)
else
printf ("%d\n", sig);
}
+ exit (0);
}
static void