X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fexec.c;h=699be61d69f3f69a040cf68821eb44fb25aa6d5f;hb=49ac868d2346c77335272b8a643bca295db9feaa;hp=d560f465490dae28bb9241fafd04f35444e78625;hpb=9599b110d313826b075ed4a8b73e0af8d07b23c2;p=collectd.git diff --git a/src/exec.c b/src/exec.c index d560f465..699be61d 100644 --- a/src/exec.c +++ b/src/exec.c @@ -18,7 +18,7 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * Authors: - * Florian octo Forster + * Florian octo Forster * Sebastian Harl * Peter Holik **/ @@ -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);