projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
281ecad
)
exec plugin: Set PID of failed programs back to zero.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sun, 4 Nov 2007 13:20:43 +0000
(14:20 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sun, 4 Nov 2007 13:20:43 +0000
(14:20 +0100)
Otherwise the program will not be executed ever again after it failed once.
src/exec.c
patch
|
blob
|
history
diff --git
a/src/exec.c
b/src/exec.c
index
d9f2d8c
..
fd20191
100644
(file)
--- a/
src/exec.c
+++ b/
src/exec.c
@@
-295,6
+295,7
@@
static void *exec_read_one (void *arg)
ERROR ("exec plugin: fdopen (%i) failed: %s", fd,
sstrerror (errno, errbuf, sizeof (errbuf)));
kill (pl->pid, SIGTERM);
+ pl->pid = 0;
close (fd);
pthread_exit ((void *) 1);
}