Blame SOURCES/0009-rh1181255-EAGAIN.patch

6f6f40
From 375a6294a41e003f873821a01d947f0ecfaf76d4 Mon Sep 17 00:00:00 2001
6f6f40
From: Thomas Graf <tgraf@suug.ch>
6f6f40
Date: Tue, 2 Apr 2013 11:58:18 +0200
6f6f40
Subject: [PATCH] nl: Return -NLE_AGAIN if non-blocking socket would block
6f6f40
6f6f40
Previously 0 was returned which gave the caller no chance of detecting
6f6f40
when a non-blocking socket would block. If a caller intends to never
6f6f40
see an error message it should utilize poll()/select() to only read
6f6f40
when the socket has pending data or information.
6f6f40
6f6f40
Reported-by: Holger Eitzenberger <holger@eitzenberger.org>
6f6f40
Signed-off-by: Thomas Graf <tgraf@suug.ch>
6f6f40
---
6f6f40
 lib/nl.c | 5 -----
6f6f40
 1 file changed, 5 deletions(-)
6f6f40
6f6f40
diff --git a/lib/nl.c b/lib/nl.c
6f6f40
index fa43c56..0445e35 100644
6f6f40
--- a/lib/nl.c
6f6f40
+++ b/lib/nl.c
6f6f40
@@ -627,11 +627,6 @@ retry:
6f6f40
 			NL_DBG(3, "recvmsg() returned EINTR, retrying\n");
6f6f40
 			goto retry;
6f6f40
 		}
6f6f40
-		if (errno == EAGAIN || errno == EWOULDBLOCK) {
6f6f40
-			NL_DBG(3, "recvmsg() returned EAGAIN||EWOULDBLOCK, aborting\n");
6f6f40
-			retval = 0;
6f6f40
-			goto abort;
6f6f40
-		}
6f6f40
 		retval = -nl_syserr2nlerr(errno);
6f6f40
 		goto abort;
6f6f40
 	}
6f6f40
-- 
6f6f40
2.1.0
6f6f40