projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70cb50e
)
kill correct pid on fdopen failure
author
ciomaire
<ciomaire@adobe.com>
Tue, 3 May 2016 11:41:14 +0000
(13:41 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Sun, 15 May 2016 08:33:54 +0000
(10:33 +0200)
src/exec.c
patch
|
blob
|
history
diff --git
a/src/exec.c
b/src/exec.c
index
d560f46
..
83055da
100644
(file)
--- a/
src/exec.c
+++ b/
src/exec.c
@@
-744,8
+744,7
@@
static void *exec_notification_one (void *arg) /* {{{ */
char errbuf[1024];
ERROR ("exec plugin: fdopen (%i) failed: %s", fd,
sstrerror (errno, errbuf, sizeof (errbuf)));
- kill (pl->pid, SIGTERM);
- pl->pid = 0;
+ kill (pid, SIGTERM);
close (fd);
sfree (arg);
pthread_exit ((void *) 1);