mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-26 07:57:58 +00:00
parallel: Fixed bug #36707: --controlmaster eats jobs
This commit is contained in:
parent
a0ee9af15f
commit
88c50259d8
|
@ -2941,7 +2941,7 @@ sub sshcommand_of_sshlogin {
|
||||||
$Global::sshmaster{$pid}++;
|
$Global::sshmaster{$pid}++;
|
||||||
} else {
|
} else {
|
||||||
::debug($master,"\n");
|
::debug($master,"\n");
|
||||||
`$master`;
|
`$master </dev/null`;
|
||||||
::wait_and_exit(0);
|
::wait_and_exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,5 +30,9 @@ EOF
|
||||||
chmod 755 '/tmp/she <bang>"'
|
chmod 755 '/tmp/she <bang>"'
|
||||||
seq 1 3 >/tmp/123
|
seq 1 3 >/tmp/123
|
||||||
'/tmp/she <bang>"'
|
'/tmp/she <bang>"'
|
||||||
|
|
||||||
echo '### bug #36595: silent loss of input with --pipe and --sshlogin'
|
echo '### bug #36595: silent loss of input with --pipe and --sshlogin'
|
||||||
seq 10000 | xargs | parallel --pipe -S 10/localhost cat | wc
|
seq 10000 | xargs | parallel --pipe -S 10/localhost cat | wc
|
||||||
|
|
||||||
|
echo 'bug #36707: --controlmaster eats jobs'
|
||||||
|
seq 2 | parallel --controlmaster --sshlogin localhost echo OK{}
|
||||||
|
|
Loading…
Reference in a new issue