Fixed bug #49404: “Max jobs to run” does not equal the number of jobs specified when using GNU Parallel on remote server?

Fixed bug #49335: parallel: Warning: You may raise this by changing /etc/ssh/sshd_config:MaxStartups and MaxSessions.
This commit is contained in:
Ole Tange 2016-10-22 13:35:26 +02:00
parent 1863566363
commit d5761dcaae

View file

@ -5416,11 +5416,12 @@ sub simultaneous_sshlogin_limit {
"for $ssh_limit simultaneous logins.",
"You may raise this by changing ".
"/etc/ssh/sshd_config:MaxStartups and MaxSessions on $serverlogin.",
"You can also try --sshdelay 0.1",
"Using only ".($ssh_limit-1)." connections ".
"to avoid race conditions.");
}
# Race condition can cause problem if using all sshs.
if($ssh_limit > 1) { $ssh_limit -= 1; }
}
return $ssh_limit;
}
@ -7726,7 +7727,7 @@ sub start {
::shell_quote_scalar_default($script)
);
# Redirect STDERR temporarily,
# so errors on MacOS X is ignored.
# so errors on MacOS X are ignored.
open my $saveerr, ">&STDERR";
open STDERR, '>', "/dev/null";
# Run the test