示例#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")))