#NEWLINE# def kill_members( members , sig , hosts = nodes ) : #NEWLINE# #INDENT# for member in sorted ( members ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ha_tools_debug : #NEWLINE# #INDENT# print ( ( 'killing %s' % member ) ) #NEWLINE# #UNINDENT# proc = hosts [ member ] [ 'proc' ] #NEWLINE# if ( sys . platform in ( 'win32' , 'cygwin' ) ) : #NEWLINE# #INDENT# os . kill ( proc . pid , signal . CTRL_C_EVENT ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# os . kill ( proc . pid , sig ) #NEWLINE# #UNINDENT# #UNINDENT# except OSError : #NEWLINE# #INDENT# if ha_tools_debug : #NEWLINE# #INDENT# print ( ( '%s already dead?' % member ) )