#NEWLINE# def _stop( self ) : #NEWLINE# #INDENT# "\n        Terminate this process, \n        This function may only be called by the process that called 'start_sync'\n        \n         \n        " #NEWLINE# self . _running = False #NEWLINE# self . _terminating = True #NEWLINE# if ( not self . _p0 ) : #NEWLINE# #INDENT# log . info ( '_p0 is none' ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# parent = psutil . Process ( self . _p0 . pid ) #NEWLINE# #UNINDENT# except psutil . NoSuchProcess : #NEWLINE# #INDENT# log . info ( ( 'psutil.NoSuchProcess %s' % self . _p0 . pid ) ) #NEWLINE# return #NEWLINE# #UNINDENT# children = parent . children ( recursive = True ) #NEWLINE# log . info ( ( 'Sending signal %s to process %s' % ( self . stopsignal , self . _p0 . pid ) ) ) #NEWLINE# self . _send_signal ( self . _p0 . pid , self . stopsignal ) #NEWLINE# return children