Rob Shortt wrote: > 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?
No, you can not. Somehow sys.exit must be transformed into a reactor stop. Dischi -- "Either toss the Windows out of your computer, or toss your computer out the window!" -- Richard Stallman
pgpju2xPUbki2.pgp
Description: PGP 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