コード例 #1
0
ファイル: sighandler.py プロジェクト: yegorich/circus
 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
ファイル: sighandler.py プロジェクト: yegorich/circus
 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
ファイル: sighandler.py プロジェクト: BrainBot/circus
 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
ファイル: sighandler.py プロジェクト: BrainBot/circus
 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")))