#NEWLINE# def setup_backdoor( runner , port ) : #NEWLINE# #INDENT# def _bad_call( ) : #NEWLINE# #INDENT# raise RuntimeError ( 'This would kill your service, not close the backdoor. To exit, use ctrl-c.' ) #NEWLINE# #UNINDENT# socket = eventlet . listen ( ( 'localhost' , port ) ) #NEWLINE# gt = eventlet . spawn ( backdoor . backdoor_server , _bad_call , locals = { #NEWLINE# #INDENT# 'runner' : runner , #NEWLINE# 'quit' : _bad_call , #NEWLINE# 'exit' : _bad_call , #NEWLINE# #UNINDENT# } ) #NEWLINE# return ( socket , gt )