"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "base/workers.c" between
nagios-4.4.3.tar.gz and nagios-4.4.4.tar.gz

About: Nagios (Core) is an host/service/network monitoring system to identify and resolve IT infrastructure problems.

workers.c  (nagios-4.4.3):workers.c  (nagios-4.4.4)
skipping to change at line 750 skipping to change at line 750
iobroker_unregister(nagios_iobs, sd); iobroker_unregister(nagios_iobs, sd);
if (workers.len <= 0) { if (workers.len <= 0) {
/* there aren't global workers left, we can't run any mor e checks /* there aren't global workers left, we can't run any mor e checks
* we should try respawning a few of the standard ones * we should try respawning a few of the standard ones
*/ */
logit(NSLOG_RUNTIME_ERROR, TRUE, "wproc: All our workers are dead, we can't do anything!"); logit(NSLOG_RUNTIME_ERROR, TRUE, "wproc: All our workers are dead, we can't do anything!");
} }
remove_worker(wp); remove_worker(wp);
fanout_destroy(wp->jobs, fo_reassign_wproc_job); fanout_destroy(wp->jobs, fo_reassign_wproc_job);
wp->jobs = NULL; wp->jobs = NULL;
wproc_destroy(wp, 0); wproc_destroy(wp, WPROC_FORCE);
return 0; return 0;
} }
while ((buf = worker_ioc2msg(wp->ioc, &size, 0))) { while ((buf = worker_ioc2msg(wp->ioc, &size, 0))) {
struct wproc_job *job; struct wproc_job *job;
wproc_result wpres; wproc_result wpres;
/* log messages are handled first */ /* log messages are handled first */
if (size > 5 && !memcmp(buf, "log=", 4)) { if (size > 5 && !memcmp(buf, "log=", 4)) {
logit(NSLOG_INFO_MESSAGE, TRUE, "wproc: %s: %s\n", wp->na me, buf + 4); logit(NSLOG_INFO_MESSAGE, TRUE, "wproc: %s: %s\n", wp->na me, buf + 4);
continue; continue;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)