From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id D975F3858C1F; Wed, 15 Mar 2023 21:10:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D975F3858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678914646; bh=ZcNYerN9jOtig7Pq47kMeSzvSNaclBNsntYegGd9Mg8=; h=From:To:Subject:Date:From; b=pTnL6wh76Wa6Wt84rr7c4lH2CKIPnhA37Iamyq5o/Rl+Co4mfE5GMkMlIgjOmdX8I yPDpyo4rYscMiIjnPfPwH5XjD3HiCNV5PsA1RAsnR6QdOYgDzzKqlrgULfuGxVN/5T 50QgwEXl3fUOmKWeji/yh9OFhk3GOtfr3GgzKYYI= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: kill(1): don't print spurious error message X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/main X-Git-Oldrev: 07b5d3726fb9548d474751bed1a3aa00dba263e8 X-Git-Newrev: 3569e3577c9de2b3a5cffba40597d2755bf5aacd Message-Id: <20230315211046.D975F3858C1F@sourceware.org> Date: Wed, 15 Mar 2023 21:10:46 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D3569e3577c9= de2b3a5cffba40597d2755bf5aacd commit 3569e3577c9de2b3a5cffba40597d2755bf5aacd Author: Corinna Vinschen AuthorDate: Wed Mar 15 21:50:32 2023 +0100 Commit: Corinna Vinschen CommitDate: Wed Mar 15 22:08:04 2023 +0100 Cygwin: kill(1): don't print spurious error message =20 Make kill -V and kill -l exit immediately, thus stopping to print "not enough arguments" accidentally. =20 Fixes: ef48a2cad3704 ("* kill.cc (prog_name) New global variable.") Fixes: c49fa762631f9 ("* Makefile.in (kill.exe): Add as a specific targ= et.") Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/release/3.4.7 | 7 +++++-- 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 eba5de47327d..a121d81b62fa 100644 --- a/winsup/cygwin/release/3.4.7 +++ b/winsup/cygwin/release/3.4.7 @@ -1,5 +1,8 @@ Bug Fixes --------- =20 -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 04c9774eb8eb..fc984c0b471e 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); } =20 static const char * @@ -126,6 +127,7 @@ listsig (const char *in_sig) else printf ("%d\n", sig); } + exit (0); } =20 static void