if (current_child < 0) {
perror("fork");
+ ShutDownLibCitadel ();
exit(errno);
}
if (pid_file) {
unlink(pid_file);
}
+ ShutDownLibCitadel ();
exit(WEXITSTATUS(status));
}
/* now the original thread becomes another worker */
worker_entry();
+ ShutDownLibCitadel ();
return 0;
}
free_zone_directory ();
icaltimezone_release_zone_tab ();
icalmemory_free_ring ();
+ ShutDownLibCitadel ();
lprintf(2, "master shutdown exiting!.\n");
exit(0);
}