#NEWLINE# def waitForDeath( self , timeout = 10 , delay = 0.25 ) : #NEWLINE# #INDENT# 'wait for process to die\n\n           @return (bool)\n        ' #NEWLINE# while ( timeout > 0 ) : #NEWLINE# #INDENT# if ( not self . isRunning ( ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# time . sleep ( delay ) #NEWLINE# timeout -= delay #NEWLINE# #UNINDENT# return False