From da55bd5aac86a2073264b742dae513872664808c Mon Sep 17 00:00:00 2001 From: gilles Date: Wed, 14 Oct 2015 21:27:29 +0000 Subject: [PATCH] imsg_read() may return EAGAIN, handle it in mproc_dispatch() --- usr.sbin/smtpd/mproc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.20.1