Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2023-03-15 23:50:32 +0300
committerCorinna Vinschen <corinna@vinschen.de>2023-03-16 00:08:04 +0300
commit3569e3577c9de2b3a5cffba40597d2755bf5aacd (patch)
tree5e5dcd58b418c1941b23e794c6c1efb31751faa3 /winsup/utils
parent07b5d3726fb9548d474751bed1a3aa00dba263e8 (diff)
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 04c9774eb..fc984c0b4 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