From 8dd123723584a19d1cead144d3a39f9c4b51679d Mon Sep 17 00:00:00 2001
From: Danny Auble <da@schedmd.com>
Date: Thu, 13 Jul 2017 09:19:27 -0600
Subject: [PATCH] Revert "Make srun --pty option ignore EINTR allowing windows
 to resize."

This reverts commit d49081df874a5fc54b5ac2ba74bded31189f8cfc.
---
 NEWS                | 1 -
 src/srun/srun_pty.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index ed86972d631..bf6875c21f0 100644
--- a/NEWS
+++ b/NEWS
@@ -53,7 +53,6 @@ documents those changes that are of interest to users and administrators.
  -- Performance boost for when Slurm is dealing with credentials.
  -- Fix race condition which could leave a stepd hung on shutdown.
  -- Add lua support for opensuse.
- -- Make srun --pty option ignore EINTR allowing windows to resize.
 
 * Changes in Slurm 17.02.4
 ==========================
diff --git a/src/srun/srun_pty.c b/src/srun/srun_pty.c
index e9a433a7e8f..1e5d5a22f49 100644
--- a/src/srun/srun_pty.c
+++ b/src/srun/srun_pty.c
@@ -157,7 +157,7 @@ static void *_pty_thread(void *arg)
 
 	while (job->state <= SRUN_JOB_RUNNING) {
 		debug2("waiting for SIGWINCH");
-		if ((poll(NULL, 0, -1) < 1) && (errno != EINTR)) {
+		if (poll(NULL, 0, -1) < 1) {
 			debug("%s: poll error %m", __func__);
 			continue;
 		}
-- 
GitLab