]> sourceware.org Git - newlib-cygwin.git/commitdiff
* kill.cc (main): Skip to PID loop on invalid option to handle
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 12 Oct 2009 16:01:44 +0000 (16:01 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 12 Oct 2009 16:01:44 +0000 (16:01 +0000)
negative pids there.

winsup/utils/ChangeLog
winsup/utils/kill.cc

index 215706162e6f9745f4f4cf856b3f2e3982e0ebca..f3d05d9b24143094c04bf89b5828d9c344aaec89 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-12  Corinna Vinschen  <corinna@vinschen.de>
+
+       * kill.cc (main): Skip to PID loop on invalid option to handle
+       negative pids there.
+
 2009-08-11  Corinna Vinschen  <corinna@vinschen.de>
 
        * mkgroup.c (enum_local_groups): Avoid error message if given group
index f43ef7762c178ca0f9aba010d5df794c88a5c59a..35ed128d0d3bc320130c041fa78ff8067d99a22f 100644 (file)
@@ -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;
This page took 0.03316 seconds and 5 git commands to generate.