- if(!count && cd->enabled) {
- error("PLUGINSD: '%s' does not generate usefull output. Disabling it.", cd->fullfilename);
- cd->enabled = 0;
- // test: killing an exited child kills us - lets check it exists before killing it
- if(kill(cd->pid, 0) != -1) kill(cd->pid, SIGTERM);
+ if(unlikely(!count && cd->enabled)) {
+ error("PLUGINSD: '%s' (pid %d) does not generate usefull output. Waiting a bit before starting it again.", cd->fullfilename, cd->pid);
+ sleep(cd->update_every * 10);