X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/f8f40a64d41c4d47b974810320ab257e2eac0cf3..2791749f220602482c2cce772e6520c54218c0dd:/src/src/queue.c diff --git a/src/src/queue.c b/src/src/queue.c index a57801426..061743323 100644 --- a/src/src/queue.c +++ b/src/src/queue.c @@ -653,9 +653,10 @@ for (int i = queue_run_in_order ? -1 : 0; the mere fact that read() unblocks is enough. */ set_process_info("running queue: waiting for children of %d", pid); - if ((status = read(pfd[pipe_read], buffer, sizeof(buffer))) != 0) - log_write(0, LOG_MAIN|LOG_PANIC, status > 0 ? - "queue run: unexpected data on pipe" : "queue run: error on pipe: %s", + if ((status = os_pipe_read(pfd[pipe_read], buffer, sizeof(buffer))) != 0) + log_write(0, LOG_MAIN|LOG_PANIC, status > 0 + ? "queue run: unexpected data on pipe" + : "queue run: error on pipe read: %s", strerror(errno)); (void)close(pfd[pipe_read]); set_process_info("running queue");