From 5d2345ca54990bdd18fb687113669417fcb7048d Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 26 Nov 2013 12:01:41 +0000 Subject: deal with msgbuf_write EAGAIN, ok gilles benno --- usr.sbin/smtpd/enqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/smtpd') diff --git a/usr.sbin/smtpd/enqueue.c b/usr.sbin/smtpd/enqueue.c index 24f9abde637..ab095aa790d 100644 --- a/usr.sbin/smtpd/enqueue.c +++ b/usr.sbin/smtpd/enqueue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: enqueue.c,v 1.69 2013/10/25 21:31:23 eric Exp $ */ +/* $OpenBSD: enqueue.c,v 1.70 2013/11/26 12:01:40 henning Exp $ */ /* * Copyright (c) 2005 Henning Brauer @@ -705,7 +705,7 @@ open_connection(void) imsg_compose(ibuf, IMSG_SMTP_ENQUEUE_FD, IMSG_VERSION, 0, -1, NULL, 0); while (ibuf->w.queued) - if (msgbuf_write(&ibuf->w) < 0) + if (msgbuf_write(&ibuf->w) < 0 && errno != EAGAIN) err(1, "write error"); while (1) { -- cgit v1.2.3