42 #include <sys/types.h>
46 static const char* tools_str =
"tools";
75 ods_log_debug(
"[%s] zone %s switch to new signconf", tools_str,
107 "publish dnskeys (%s)", tools_str, zone->
name,
118 "publish nsec3param (%s)", tools_str, zone->
name,
137 ods_log_error(
"[%s] unable to read zone %s: adapter failed (%s)",
163 int fdlimit = sysconf(_SC_OPEN_MAX);
164 while (fd < fdlimit) {
192 "changed)", tools_str, zone->
name?zone->
name:
"(null)",
205 ods_log_error(
"[%s] unable to write zone %s: adapter failed (%s)",
221 switch ((pid = fork())) {
223 ods_log_error(
"[%s] notify nameserver failed: unable to fork "
224 "(%s)", tools_str, strerror(errno));
232 ods_log_error(
"[%s] notify nameserver failed: execv() failed "
233 "(%s)", tools_str, strerror(errno));
240 while((wpid = waitpid(pid, &status, 0)) <= 0) {
241 if (errno != EINTR) {
247 "failed (%s)", tools_str, strerror(errno));
248 }
else if (!WIFEXITED(status)) {
250 "command did not terminate normally", tools_str);