projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
d5ad08e
)
Merge pull request #1384 from rubenk/irq-close-file-descriptor-on-failure
author
Ruben Kerkhof
<ruben@tilaa.nl>
Sun, 29 Nov 2015 12:35:12 +0000
(13:35 +0100)
committer
Ruben Kerkhof
<ruben@tilaa.nl>
Sun, 29 Nov 2015 12:35:12 +0000
(13:35 +0100)
irq plugin: close file descriptor on failure
src/irq.c
patch
|
blob
|
history
diff --git
a/src/irq.c
b/src/irq.c
index
6afacf0
..
93f3f53
100644
(file)
--- a/
src/irq.c
+++ b/
src/irq.c
@@
-120,6
+120,7
@@
static int irq_read (void)
} else {
ERROR ("irq plugin: unable to get CPU count from first line "
"of /proc/interrupts");
+ fclose (fh);
return (-1);
}