Skip to content
Snippets Groups Projects
Commit fa250833 authored by Morris Jette's avatar Morris Jette
Browse files

Avoid misleading error on srun --pty exit

There was an error reported by slurmstepd trying to read the window
size from srun when srun was exiting. This eliminates that spurious
error message.
parent 874cd871
No related branches found
No related tags found
No related merge requests found
...@@ -843,7 +843,9 @@ static void *_window_manager(void *arg) ...@@ -843,7 +843,9 @@ static void *_window_manager(void *arg)
break; break;
} }
len = slurm_read_stream(win_info->pty_fd, buf, 4); len = slurm_read_stream(win_info->pty_fd, buf, 4);
if ((len == -1) && ((errno == EINTR) || (errno == EAGAIN))) if ((len == -1) &&
((errno == EINTR) || (errno == EAGAIN) ||
(errno == SLURM_PROTOCOL_SOCKET_ZERO_BYTES_SENT)))
continue; continue;
if (len < 4) { if (len < 4) {
error("read window size error: %m"); error("read window size error: %m");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment