diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2023-06-29 19:38:51 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2023-06-29 19:38:51 +0000 |
commit | 95a3f12ceccbeed1c6c1a4900d40a4f641ead10d (patch) | |
tree | 7869df3aea62da795055d88ffcf48099f5537f37 /usr.sbin/nsd/verify.c | |
parent | 4484138b88399ee6af4ae5032844977e10cdf3b8 (diff) |
Update to nsd 4.7.0
OK tb
Diffstat (limited to 'usr.sbin/nsd/verify.c')
-rw-r--r-- | usr.sbin/nsd/verify.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/nsd/verify.c b/usr.sbin/nsd/verify.c index 06d72d30e0e..df9b8e80e4d 100644 --- a/usr.sbin/nsd/verify.c +++ b/usr.sbin/nsd/verify.c @@ -112,11 +112,11 @@ static inline size_t print_line(struct verifier_stream *stream, int eof) return 0; if (len > LOGLINELEN) { - fmt = stream->cut ? ".. %.*s .." : "%.*s .."; + fmt = stream->cut ? "verifier: .. %.*s .." : "verifier: %.*s .."; len = LOGLINELEN; // remainder printed next iteration stream->cut = 1; } else { - fmt = stream->cut ? ".. %.*s" : "%.*s"; + fmt = stream->cut ? "verifier: .. %.*s" : "verifier: %.*s"; stream->cut = 0; } log_msg(stream->priority, fmt, len, stream->buf + stream->off); @@ -274,7 +274,10 @@ void verify_handle_signal(int sig, short event, void *arg) assert(arg != NULL); nsd = (struct nsd *)arg; - (void)write(nsd->verifier_pipe[1], buf, sizeof(buf)); + if(write(nsd->verifier_pipe[1], buf, sizeof(buf)) == -1) { + log_msg(LOG_ERR, "verify_handle_signal: write failed: %s", + strerror(errno)); + } } /* |