projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4a2f3e
)
Fix collecdmon not start collectd
author
Toshiaki Takahashi
<takahashi.tsc@ncos.nec.co.jp>
Tue, 15 May 2018 09:06:16 +0000
(09:06 +0000)
committer
Toshiaki Takahashi
<takahashi.tsc@ncos.nec.co.jp>
Tue, 15 May 2018 09:15:04 +0000
(09:15 +0000)
Because collectdmon cannot exit parse command line options loop,
it cannot execute collectd start processing.
src/collectdmon.c
patch
|
blob
|
history
diff --git
a/src/collectdmon.c
b/src/collectdmon.c
index
43ff6af
..
36cd939
100644
(file)
--- a/
src/collectdmon.c
+++ b/
src/collectdmon.c
@@
-276,9
+276,10
@@
int main(int argc, char **argv) {
while (42) {
int c = getopt(argc, argv, "hc:P:");
- switch (c) {
- case -1:
+ if (c == -1)
break;
+
+ switch (c) {
case 'c':
collectd = optarg;
break;