Duncan Webb wrote:
> |# catch SIGTERM and SIGINT if possible for a clean shutdown
> |if threading.enumerate()[0] == threading.currentThread():
> |    def signal_handler(*args):
> |        #sys.exit(0)
> |        pass
> |    signal.signal(signal.SIGTERM, signal_handler)
> |    signal.signal(signal.SIGINT, signal_handler)
> |else:
> |    log.info('kaa imported from thread, disable SIGTERM handler')

Duncan, instead of commenting out the sts.exit(0), can you
"raise SystemExit" instead?

-Rob

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to