Skip to content

Commit cf485ab

Browse files
committed
shutdown command file worker on errors
otherwise naemon hangs during errors on start
1 parent 78a75df commit cf485ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/naemon/naemon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ int main(int argc, char **argv)
599599
nm_log(NSLOG_CONFIG_ERROR, "Error: Module loading failed. Aborting.\n");
600600
/* give already loaded modules a chance to deinitialize */
601601
neb_unload_all_modules(NEBMODULE_FORCE_UNLOAD, NEBMODULE_NEB_SHUTDOWN);
602+
shutdown_command_file_worker();
602603
exit(EXIT_FAILURE);
603604
}
604605
timing_point("Loaded modules\n");

0 commit comments

Comments
 (0)