summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2013-11-26 12:03:00 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2013-11-26 12:03:00 +0000
commit19dfd92a8e59e064e3dc15c12917dff9012494da (patch)
treeb245445d9db412af7c90d0657594e5cc11a78a24
parent54c8d9354e3fbe564d64aa1d422de3bd23e7da26 (diff)
msgbuf_write EAGAIN, ok gilles benno
all of these from a long train ride
-rw-r--r--usr.sbin/ypldap/ldapclient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ypldap/ldapclient.c b/usr.sbin/ypldap/ldapclient.c
index 9db28150001..bf564c2214f 100644
--- a/usr.sbin/ypldap/ldapclient.c
+++ b/usr.sbin/ypldap/ldapclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldapclient.c,v 1.27 2013/04/30 05:14:59 jmatthew Exp $ */
+/* $OpenBSD: ldapclient.c,v 1.28 2013/11/26 12:02:59 henning Exp $ */
/*
* Copyright (c) 2008 Alexander Schrijver <aschrijver@openbsd.org>
@@ -174,7 +174,7 @@ client_dispatch_dns(int fd, short event, void *p)
shut = 1;
break;
case EV_WRITE:
- if (msgbuf_write(&ibuf->w) == -1)
+ if (msgbuf_write(&ibuf->w) == -1 && errno != EAGAIN)
fatal("msgbuf_write");
imsg_event_add(iev);
return;
@@ -276,7 +276,7 @@ client_dispatch_parent(int fd, short event, void *p)
shut = 1;
break;
case EV_WRITE:
- if (msgbuf_write(&ibuf->w) == -1)
+ if (msgbuf_write(&ibuf->w) == -1 && errno != EAGAIN)
fatal("msgbuf_write");
imsg_event_add(iev);
return;