X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fexec.c;h=699be61d69f3f69a040cf68821eb44fb25aa6d5f;hb=e2b289ea039269b60edd459d2d514d3f82820e3a;hp=d560f465490dae28bb9241fafd04f35444e78625;hpb=1eb3c043cb162ef198f86034cf7604be4a0a0d9c;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);