From 7d0444e2446c71e79e49f46f371c62f6d20488d7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 7 Dec 2010 12:33:42 +0000 Subject: [PATCH] * Bad things happen when a filehandle has the same name as a module. --- scripts/SSH.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/SSH.pm b/scripts/SSH.pm index 44a0e6f31..3b546ca52 100644 --- a/scripts/SSH.pm +++ b/scripts/SSH.pm @@ -24,9 +24,9 @@ sub openSSHConnection { # child continues to run if we are killed. So instead make SSH # print "started" when it has established the connection, and wait # until we see that. - open SSH, "ssh $sshHost @sshOpts -M -N -o LocalCommand='echo started' -o PermitLocalCommand=yes |" or die; + open SSHPIPE, "ssh $sshHost @sshOpts -M -N -o LocalCommand='echo started' -o PermitLocalCommand=yes |" or die; - while () { + while () { chomp; if ($_ eq "started") { $sshStarted = 1;