From 02c8806078bf288e92fa79fdcf42a606d9dbd0cc Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 21 May 2009 06:52:33 +0000 Subject: [PATCH] Fixed bug 2775946. cleanup all the sessions when config conserver. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3426 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCcli.pm | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/perl-xCAT/xCAT/PPCcli.pm b/perl-xCAT/xCAT/PPCcli.pm index ae057ecb1..e62fd6c28 100644 --- a/perl-xCAT/xCAT/PPCcli.pm +++ b/perl-xCAT/xCAT/PPCcli.pm @@ -508,27 +508,11 @@ sub mkvterm { return( [RC_ERROR,"Command not supported on '$type'"] ); } ########################################## - # For IVM, console sessions must explicitly - # be closed after each open using rmvt - # or they will remain open indefinitely. - # For example, if the session is opened - # using xterm and closed with the [x] in - # the windows upper-right corner, we will - # not be able to catch (INT,HUP,QUIT,TERM) - # before the window closes in order to - # send an rmvt - so force any IVM sessions - # closed before we start. - # - # For HMC, apparently, once the console - # session connection is broken, the HMC - # closes the session. Therefore, it is not - # necessary to explicitly close the session. - # + # Cleanup old sessions ########################################## - if ( $hwtype eq "ivm" ) { - rmvterm( $exp, $lparid, $mtms ); - sleep 1; - } + rmvterm( $exp, $lparid, $mtms ); + sleep 1; + ########################################## # Send command ##########################################