<s> """<STR_LIT>""" <EOL> from multiprocessing import Process , Queue <EOL> from framework . dependency_management . dependency_resolver import BaseComponent <EOL> class OWTFProcess ( Process , BaseComponent ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> self . core = self . get_component ( "<STR_LIT>" ) <EOL> self . db = self . get_component ( "<STR_LIT>" ) <EOL> self . plugin_handler = self . get_component ( "<STR_LIT>" ) <EOL> self . poison_q = Queue ( ) <EOL> self . _process = None <EOL> for key in kwargs . keys ( ) : <EOL> setattr ( self , key , kwargs . get ( key , None ) ) <EOL> super ( OWTFProcess , self ) . __init__ ( ) <EOL> def make_daemon ( self ) : <EOL> """<STR_LIT>""" <EOL> self . daemon = True <EOL> def initialize ( self , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def run ( self ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> self . db . create_session ( ) <EOL> self . core . enable_logging ( ) <EOL> self . pseudo_run ( ) <EOL> except KeyboardInterrupt : <EOL> pass <EOL> def pseudo_run ( self ) : <EOL> """<STR_LIT>""" <EOL> pass </s>
