Skip to content
Snippets Groups Projects
Commit 9ed3a300 authored by Tim Shaw's avatar Tim Shaw Committed by Morris Jette
Browse files

Modify srun --pty option to use configured SrunPortRange range

bug 3979
parent 2f2680d7
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ documents those changes that are of interest to users and administrators. ...@@ -10,6 +10,7 @@ documents those changes that are of interest to users and administrators.
-- Set job/step start and end times to 0 when using --truncate and start > end. -- Set job/step start and end times to 0 when using --truncate and start > end.
-- Make srun --pty option ignore EINTR allowing windows to resize. -- Make srun --pty option ignore EINTR allowing windows to resize.
-- When resuming node only send one message to the slurmdbd. -- When resuming node only send one message to the slurmdbd.
-- Modify srun --pty option to use configured SrunPorts range.
* Changes in Slurm 17.02.6 * Changes in Slurm 17.02.6
========================== ==========================
......
...@@ -94,8 +94,14 @@ void pty_thread_create(srun_job_t *job) ...@@ -94,8 +94,14 @@ void pty_thread_create(srun_job_t *job)
{ {
slurm_addr_t pty_addr; slurm_addr_t pty_addr;
pthread_attr_t attr; pthread_attr_t attr;
uint16_t *ports;
if ((job->pty_fd = slurm_init_msg_engine_port(0)) < 0) { if ((ports = slurm_get_srun_port_range()))
job->pty_fd = slurm_init_msg_engine_ports(ports);
else
job->pty_fd = slurm_init_msg_engine_port(0);
if (job->pty_fd < 0) {
error("init_msg_engine_port: %m"); error("init_msg_engine_port: %m");
return; return;
} }
......
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