Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102852369
D4547.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4547.diff
View Options
Index: head/usr.sbin/ypldap/ldapclient.c
===================================================================
--- head/usr.sbin/ypldap/ldapclient.c
+++ head/usr.sbin/ypldap/ldapclient.c
@@ -172,7 +172,7 @@
fatalx("unknown event");
if (events & EV_READ) {
- if ((n = imsg_read(ibuf)) == -1)
+ if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
fatal("imsg_read error");
if (n == 0)
shut = 1;
@@ -275,7 +275,7 @@
fatalx("unknown event");
if (events & EV_READ) {
- if ((n = imsg_read(ibuf)) == -1)
+ if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
fatal("imsg_read error");
if (n == 0)
shut = 1;
@@ -377,8 +377,10 @@
bzero(&env, sizeof(env));
TAILQ_INIT(&env.sc_idms);
- if ((pw = getpwnam(YPLDAP_USER)) == NULL)
+ if ((pw = getpwnam(YPLDAP_USER)) == NULL) {
+ printf("ldapclient.c error\n");
fatal("getpwnam");
+ }
if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, pipe_dns) == -1)
fatal("socketpair");
Index: head/usr.sbin/ypldap/ypldap.c
===================================================================
--- head/usr.sbin/ypldap/ypldap.c
+++ head/usr.sbin/ypldap/ypldap.c
@@ -361,7 +361,7 @@
fatalx("unknown event");
if (events & EV_READ) {
- if ((n = imsg_read(ibuf)) == -1)
+ if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
fatal("imsg_read error");
if (n == 0)
shut = 1;
Index: head/usr.sbin/ypldap/ypldap_dns.c
===================================================================
--- head/usr.sbin/ypldap/ypldap_dns.c
+++ head/usr.sbin/ypldap/ypldap_dns.c
@@ -140,7 +140,7 @@
fatalx("unknown event");
if (events & EV_READ) {
- if ((n = imsg_read(ibuf)) == -1)
+ if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
fatal("imsg_read error");
if (n == 0)
shut = 1;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 12:23 AM (21 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14707269
Default Alt Text
D4547.diff (1 KB)
Attached To
Mode
D4547: EAGAIN handling for imsg_read.
Attached
Detach File
Event Timeline
Log In to Comment