Blob Blame History Raw
From 836dcc4ef75d6ae46661e61be73c8b7737f85f68 Mon Sep 17 00:00:00 2001
From: Stef Walter <stefw@redhat.com>
Date: Thu, 14 Apr 2016 10:00:13 +0200
Subject: [PATCH 1/3] library: Fix check for EAGAIN or EINTR

https://bugs.freedesktop.org/show_bug.cgi?id=71257
---
 library/adutil.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/adutil.c b/library/adutil.c
index 60f9d5e..21ccd27 100644
--- a/library/adutil.c
+++ b/library/adutil.c
@@ -377,7 +377,7 @@ _adcli_write_all (int fd,
 	while (len > 0) {
 		res = write (fd, buf, len);
 		if (res <= 0) {
-			if (errno == EAGAIN && errno == EINTR)
+			if (errno == EAGAIN || errno == EINTR)
 				continue;
 			return -errno;
 		} else  {
-- 
2.5.5