From fd7a21a3b1062d978fc6266c94f99bbe43b6a905 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Mon, 14 Jul 2008 15:30:24 +0000
Subject: [PATCH] turn off some meaningless logging

---
 src/common/slurm_protocol_defs.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/common/slurm_protocol_defs.h b/src/common/slurm_protocol_defs.h
index 80fb1b938f9..f2fa0982706 100644
--- a/src/common/slurm_protocol_defs.h
+++ b/src/common/slurm_protocol_defs.h
@@ -858,8 +858,10 @@ extern char *node_state_string_compact(enum node_states inx);
 		char *ptr = (char *) buf;				\
 		int rc;							\
 		while (remaining > 0) {					\
-                        rc = read(fd, ptr, remaining);			\
-                        if (rc == 0) {					\
+			rc = read(fd, ptr, remaining);			\
+			if ((rc == 0) && (remaining == size))		\
+				goto rwfail;				\
+			else if (rc == 0) {				\
 				debug("%s:%d: %s: safe_read (%d of %d) EOF", \
 				      __FILE__, __LINE__, __CURRENT_FUNC__, \
 				      remaining, (int)size);		\
-- 
GitLab