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>2009-10-12 20:01:44 +0400
committerCorinna Vinschen <corinna@vinschen.de>2009-10-12 20:01:44 +0400
commit9e278ffd2cfe03a1e83e09d30aa0c361905c29f8 (patch)
tree494d1af95d80141103592af519db95fcbfd536c1 /winsup/utils/kill.cc
parentd358c9e9b084d4154a1cf994abfe9b9d09597b3d (diff)
* kill.cc (main): Skip to PID loop on invalid option to handle
negative pids there.
Diffstat (limited to 'winsup/utils/kill.cc')
-rw-r--r--winsup/utils/kill.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc
index f43ef7762..35ed128d0 100644
--- a/winsup/utils/kill.cc
+++ b/winsup/utils/kill.cc
@@ -249,10 +249,8 @@ main (int argc, char **argv)
case '?':
if (gotasig)
{
- pid = strtoll (argv[optind], &p, 10);
- if (pid < 0)
- goto out;
- usage ();
+ --optind;
+ goto out;
}
optreset = 1;
optind = 1 + av - argv;