rrdtool plugin: Sort the list of user defined `RRATimespan's.
[collectd.git] / src / exec.c
index d9f2d8c..fd20191 100644 (file)
@@ -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);
   }