Reduce memory usage of downed KVM and Xen consoles

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9037 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-03-11 19:30:37 +00:00
parent c79e383621
commit 426a80a53f
2 changed files with 4 additions and 8 deletions

View File

@ -71,10 +71,8 @@ xCAT::Client::submit_request($cmdref,\&getans);
until ($dsthost and $speed and $dstty) {
release_lock();
$sleepint=int(rand(30))+60;
print "Console not ready, retrying in $sleepint seconds (Ctrl-e,c,o to skip delay)\n";
sleep $sleepint;
get_lock();
xCAT::Client::submit_request($cmdref,\&getans);
print "Console not ready, retrying in $sleepint seconds (Ctrl-C to skip delay)\n";
exec "sleep $sleepint";
}
release_lock();
exec "ssh -t $dsthost screen -U -a -O -e ^]a -d -R -S serial-".$ARGV[0]."-cons -A $dstty $speed";

View File

@ -71,10 +71,8 @@ xCAT::Client::submit_request($cmdref,\&getans);
until ($dsthost and $speed and $dstty) {
release_lock();
$sleepint=int(rand(30))+60;
print "Console not ready, retrying in $sleepint seconds (Ctrl-e,c,o to skip delay)\n";
sleep $sleepint;
get_lock();
xCAT::Client::submit_request($cmdref,\&getans);
print "Console not ready, retrying in $sleepint seconds (Ctrl-C to skip delay)\n";
exec "sleep $sleepint";
}
release_lock();
exec "ssh -t $dsthost screen -U -a -O -e ^]a -d -R -S serial-".$ARGV[0]."-cons -A $dstty $speed";