+ # Signal handling
+ def quit(loop, signum):
+ log.debug(u'PyminDaemon quit() handler: signal %r', signum)
+ log.info(u'Shutting down...')
+ loop.stop() # tell main event loop to stop
+ def reload_config(loop, signum):
+ log.debug(u'PyminDaemon reload_config() handler: signal %r', signum)
+ log.info(u'Reloading configuration...')
+ # TODO iterate handlers list propagating reload action
+ def timer(loop, signum):
+ loop.handle_timer()
+ signal.alarm(loop.timer)
+ def child(loop, signum):
+ procman.sigchild_handler(signum)