* kill.cc (main): Skip to PID loop on invalid option to handle
negative pids there.
This commit is contained in:
parent
d358c9e9b0
commit
9e278ffd2c
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue