From f9715aaebb4f53ec6b946cfce19085d0f92be407 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 29 Mar 2012 13:31:04 +0000 Subject: [PATCH] Change psh to not leave STDIN open. Hopefully this helps ssh not get hung up expecting enters inexplicably git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12050 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/psh | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-client/bin/psh b/xCAT-client/bin/psh index 80e3d65fb..c4f8b8f5c 100755 --- a/xCAT-client/bin/psh +++ b/xCAT-client/bin/psh @@ -5,6 +5,7 @@ BEGIN { $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : -d '/opt/xcat' ? '/opt/xcat' : '/usr'; } +close(STDIN); use lib "$::XCATROOT/lib/perl"; use IO::Socket::SSL; use XML::Simple;