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
This commit is contained in:
wanghuaz 2009-05-21 06:52:33 +00:00
parent 470e74212c
commit 02c8806078

View File

@ -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
##########################################