#NEWLINE# def is_alive( self ) : #NEWLINE# #INDENT# ' Check process health. ' #NEWLINE# status = ctypes . windll . kernel32 . WaitForSingleObject ( self . handle , 1 ) #NEWLINE# if ( status == 0 ) : #NEWLINE# #INDENT# self . is_alive = False #NEWLINE# #UNINDENT# return self . is_alive