From d5761dcaaee6f0e60835bf04b1485b14e4118984 Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Sat, 22 Oct 2016 13:35:26 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20bug=20#49404:=20=E2=80=9CMax=20jobs=20t?= =?UTF-8?q?o=20run=E2=80=9D=20does=20not=20equal=20the=20number=20of=20job?= =?UTF-8?q?s=20specified=20when=20using=20GNU=20Parallel=20on=20remote=20s?= =?UTF-8?q?erver=3F=20Fixed=20bug=20#49335:=20parallel:=20Warning:=20You?= =?UTF-8?q?=20may=20raise=20this=20by=20changing=20/etc/ssh/sshd=5Fconfig:?= =?UTF-8?q?MaxStartups=20and=20MaxSessions.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/parallel | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/parallel b/src/parallel index ff54c741..1a8afab4 100755 --- a/src/parallel +++ b/src/parallel @@ -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; } } - # 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