From: gilles Date: Wed, 14 Oct 2015 21:27:29 +0000 (+0000) Subject: imsg_read() may return EAGAIN, handle it in mproc_dispatch() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=da55bd5aac86a2073264b742dae513872664808c;p=openbsd imsg_read() may return EAGAIN, handle it in mproc_dispatch() --- diff --git a/usr.sbin/smtpd/mproc.c b/usr.sbin/smtpd/mproc.c index 119c7c8f33a..563baf34d6c 100644 --- a/usr.sbin/smtpd/mproc.c +++ b/usr.sbin/smtpd/mproc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mproc.c,v 1.14 2015/10/14 21:18:19 gilles Exp $ */ +/* $OpenBSD: mproc.c,v 1.15 2015/10/14 21:27:29 gilles Exp $ */ /* * Copyright (c) 2012 Eric Faurot @@ -160,6 +160,8 @@ mproc_dispatch(int fd, short event, void *arg) if (n == -1) { log_warn("warn: %s -> %s: imsg_read", proc_name(smtpd_process), p->name); + if (errno == EAGAIN) + return; fatal("exiting"); } if (n == 0) {