예제 #1
0
 def reload(self):
     # We need to transfer the control to the loop's thread
     self.controller.loop.add_callback_from_signal(
         self.controller.dispatch,
         (None, make_json("reload", graceful=True)))
예제 #2
0
 def quit(self):
     # We need to transfer the control to the loop's thread
     self.controller.loop.add_callback_from_signal(
         self.controller.dispatch, (None, make_json("quit")))
예제 #3
0
 def reload(self):
     # We need to transfer the control to the loop's thread
     self.controller.loop.add_callback_from_signal(
         self.controller.dispatch,
         (None, make_json("reload", graceful=True))
     )
예제 #4
0
 def quit(self):
     # We need to transfer the control to the loop's thread
     self.controller.loop.add_callback_from_signal(
         self.controller.dispatch, (None, make_json("quit"))
     )
예제 #5
0
파일: sighandler.py 프로젝트: stic/circus
 def handle_hup(self):
     self.controller.dispatch((None, make_json("reload", graceful=True)))
예제 #6
0
파일: sighandler.py 프로젝트: stic/circus
 def handle_quit(self):
     self.controller.dispatch((None, make_json("quit")))