def stop_process(self, process, timeout=None):
        """ Initiates a graceful stop of one process """

        process["terminate"] = True
        if timeout is not None:
            process["terminate_at"] = time.time() + timeout
        process["subprocess"].send_signal(signal.SIGINT)
def stop_process ( self , process , timeout = None ) : process [ "terminate" ] = True if timeout is not None : process [ "terminate_at" ] = time . time ( ) + timeout process [ "subprocess" ] . send_signal ( signal . SIGINT )
Initiates a graceful stop of one process