-/* $OpenBSD: cron.c,v 1.80 2022/01/21 22:53:20 millert Exp $ */
+/* $OpenBSD: cron.c,v 1.81 2022/07/07 20:58:57 jca Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
nfds = ppoll(pfd, 1, &timeout, mask);
switch (nfds) {
case -1:
- if (errno != EINTR && errno != EAGAIN)
- err(EXIT_FAILURE, "ppoll");
+ if (errno != EINTR && errno != EAGAIN) {
+ syslog(LOG_ERR, "(CRON) DEATH (ppoll failure: %m)");
+ exit(EXIT_FAILURE);
+ }
if (errno == EINTR) {
if (got_sigchld) {
got_sigchld = 0;