diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2023-03-15 23:50:32 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2023-03-16 00:09:28 +0300 |
commit | e9b1d1ce7f3f20af2860695ab947124219ca6531 (patch) | |
tree | f4881a7eee08237d5c33efa7e93e1ab1e06dedfe | |
parent | f55ac6661cd586a5e63fb283b6a92aa1861d8fda (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>
-rw-r--r-- | winsup/cygwin/release/3.4.7 | 7 | ||||
-rw-r--r-- | winsup/utils/kill.cc | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/release/3.4.7 b/winsup/cygwin/release/3.4.7 index eba5de473..a121d81b6 100644 --- a/winsup/cygwin/release/3.4.7 +++ b/winsup/cygwin/release/3.4.7 @@ -1,5 +1,8 @@ Bug Fixes --------- -Fix CPU_SET(3) macro type mismatch by making the macros type-safe. -Addresses https://cygwin.com/pipermail/cygwin/2023-March/253220.html +- Fix CPU_SET(3) macro type mismatch by making the macros type-safe. + Addresses https://cygwin.com/pipermail/cygwin/2023-March/253220.html + +- kill(1): don't print spurious error message. + Addresses: https://cygwin.com/pipermail/cygwin/2023-March/253291.html 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 |