From 91729dce2523a25e0b9c91c4c3b2d6a2c248a00a Mon Sep 17 00:00:00 2001
From: Mark Grondona <mgrondona@llnl.gov>
Date: Tue, 21 Jan 2003 23:53:36 +0000
Subject: [PATCH]  o remove test for EAGAIN after reading from socket    (may
 be a residual from cbuf operations)

---
 src/srun/io.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/srun/io.c b/src/srun/io.c
index e428b7ca770..e7774200ac7 100644
--- a/src/srun/io.c
+++ b/src/srun/io.c
@@ -681,8 +681,6 @@ _do_task_output(int *fd, FILE *out, cbuf_t buf, int tasknum)
 	int dropped = 0;
 
 	if ((len = cbuf_write_from_fd(buf, *fd, -1, &dropped)) <= 0) {
-		if (errno == EAGAIN)
-			return len;
 		if ((len != 0)) 
 			error("Error task %d IO: %m", tasknum);
 		_close_stream(fd, out, tasknum);
-- 
GitLab