Skip to content
Snippets Groups Projects
Commit 24c6e4e6 authored by Moe Jette's avatar Moe Jette
Browse files

fix for srun --pty and multiple nodes

parent 0a50e618
No related branches found
No related tags found
No related merge requests found
...@@ -308,12 +308,14 @@ int srun(int ac, char **av) ...@@ -308,12 +308,14 @@ int srun(int ac, char **av)
srun_set_stdio_fds(job, &fds); srun_set_stdio_fds(job, &fds);
job->client_io = client_io_handler_create(fds,
job->step_layout->task_cnt,
job->step_layout->node_cnt,
job->cred, opt.labelio);
if (opt.pty) { if (opt.pty) {
struct termios term; struct termios term;
int fd = STDIN_FILENO; int fd = STDIN_FILENO;
job->client_io = client_io_handler_create(fds, 1, 1,
job->cred, opt.labelio);
/* Save terminal settings for restore */ /* Save terminal settings for restore */
tcgetattr(fd, &termdefaults); tcgetattr(fd, &termdefaults);
...@@ -323,11 +325,6 @@ int srun(int ac, char **av) ...@@ -323,11 +325,6 @@ int srun(int ac, char **av)
/* Set raw mode on local tty */ /* Set raw mode on local tty */
cfmakeraw(&term); cfmakeraw(&term);
tcsetattr(fd, TCSANOW, &term); tcsetattr(fd, TCSANOW, &term);
} else {
job->client_io = client_io_handler_create(fds,
job->step_layout->task_cnt,
job->step_layout->node_cnt,
job->cred, opt.labelio);
} }
if (!job->client_io if (!job->client_io
......
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