Blame SOURCES/0001-library-Fix-check-for-EAGAIN-or-EINTR.patch

743651
From 836dcc4ef75d6ae46661e61be73c8b7737f85f68 Mon Sep 17 00:00:00 2001
743651
From: Stef Walter <stefw@redhat.com>
743651
Date: Thu, 14 Apr 2016 10:00:13 +0200
743651
Subject: [PATCH 1/3] library: Fix check for EAGAIN or EINTR
743651
743651
https://bugs.freedesktop.org/show_bug.cgi?id=71257
743651
---
743651
 library/adutil.c | 2 +-
743651
 1 file changed, 1 insertion(+), 1 deletion(-)
743651
743651
diff --git a/library/adutil.c b/library/adutil.c
743651
index 60f9d5e..21ccd27 100644
743651
--- a/library/adutil.c
743651
+++ b/library/adutil.c
743651
@@ -377,7 +377,7 @@ _adcli_write_all (int fd,
743651
 	while (len > 0) {
743651
 		res = write (fd, buf, len);
743651
 		if (res <= 0) {
743651
-			if (errno == EAGAIN && errno == EINTR)
743651
+			if (errno == EAGAIN || errno == EINTR)
743651
 				continue;
743651
 			return -errno;
743651
 		} else  {
743651
-- 
743651
2.5.5
743651