OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23e0274
)
* kill.cc (main): Skip to PID loop on invalid option to handle
author
corinna
<corinna>
Mon, 12 Oct 2009 16:01:44 +0000
(16:01 +0000)
committer
corinna
<corinna>
Mon, 12 Oct 2009 16:01:44 +0000
(16:01 +0000)
negative pids there.
winsup/utils/ChangeLog
patch
|
blob
|
history
winsup/utils/kill.cc
patch
|
blob
|
history
diff --git
a/winsup/utils/ChangeLog
b/winsup/utils/ChangeLog
index
2157061
..
f3d05d9
100644
(file)
--- a/
winsup/utils/ChangeLog
+++ b/
winsup/utils/ChangeLog
@@
-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
diff --git
a/winsup/utils/kill.cc
b/winsup/utils/kill.cc
index
f43ef77
..
35ed128
100644
(file)
--- 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;