From 426a80a53f69f39d5fe519a62985c8ec13428f93 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 11 Mar 2011 19:30:37 +0000 Subject: [PATCH] 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 --- xCAT-server/share/xcat/cons/kvm | 6 ++---- xCAT-server/share/xcat/cons/xen | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/xCAT-server/share/xcat/cons/kvm b/xCAT-server/share/xcat/cons/kvm index ef4689861..ae435a5aa 100755 --- a/xCAT-server/share/xcat/cons/kvm +++ b/xCAT-server/share/xcat/cons/kvm @@ -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"; diff --git a/xCAT-server/share/xcat/cons/xen b/xCAT-server/share/xcat/cons/xen index 6813c35d7..0cd3bb1be 100755 --- a/xCAT-server/share/xcat/cons/xen +++ b/xCAT-server/share/xcat/cons/xen @@ -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";