artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ce9fa2
)
imsg_read() may return EAGAIN, handle it in mproc_dispatch()
author
gilles
<gilles@openbsd.org>
Wed, 14 Oct 2015 21:27:29 +0000
(21:27 +0000)
committer
gilles
<gilles@openbsd.org>
Wed, 14 Oct 2015 21:27:29 +0000
(21:27 +0000)
usr.sbin/smtpd/mproc.c
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/mproc.c
b/usr.sbin/smtpd/mproc.c
index
119c7c8
..
563baf3
100644
(file)
--- a/
usr.sbin/smtpd/mproc.c
+++ b/
usr.sbin/smtpd/mproc.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: mproc.c,v 1.1
4 2015/10/14 21:18:1
9 gilles Exp $ */
+/* $OpenBSD: mproc.c,v 1.1
5 2015/10/14 21:27:2
9 gilles Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@faurot.net>
@@
-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) {