Dirk Meyer wrote: > Duncan Webb wrote: > >> Dirk Meyer wrote: >> >>> Duncan Webb wrote: >>> >>> >>>> | Does Freevo register an external unix signal handler? It should not do >>>> | that. Please try to find out using some debug code what happens in >>>> | kaa.notifier.main loop and stop. >>>> >>>> >>>> It does register an Unix signal handler, when I comment these out and >>>> press Ctrl-C I see: >>>> DJW:Starting kaa main run loop >>>> (!) [ 5832: 17.614] --> Caught signal 2, no siginfo available <-- >>>> (!) [ 5832: 17.615] --> Caught signal 15, no siginfo available <-- >>>> >>>> These look like directfb messages which mean that kaa has not caught them. >>>> >>>> >>> OK, put the signal handler back on. So the question is: is >>> kaa.main.stop being called? Does kaa.main.loop get a SystemExit or >>> KeyboardInterrupt? >>> >>> >> Sorry I can't figure out what is going on, the behaviour seems to >> change, sometimes it shut down cleanly with a ctrl-c othertimes it >> doesn't. Through the menu it does not shut down, just get the "shutting >> down..." message. >> >> Sometimes the kaa.main.stop gets called othertimes it doesn't. >> >> The situation is worse when the external signal handlers are disabled, >> it just exits no stops are called. >> > > OK, you need the signal handler. They will raise a sys.exit on C-c > (except when you use twisted, but IIRC you do not). The question is: > what happens with sys.exit? Do you catch all exceptions somewhere? >
I'm not quite sure what you mean. Do you mean that the signal handler should raise a SystemExit? Freevo-1 does catch exceptions, such as when a crash has been detected. I have been trying out some things. Using the last released kaa.base-0.3.0, the record server's Popen works correctly. All I had to change was to rename the coroutine decorators, Anyway the yield_execution calls don't work kaa-base-0.3.0 and Python 2.4, send errors. The shut down and ctrl-c don't work in rel-1 svn but does with 1.8.0rc2; I could have changed something but can't think of anything so I'll merge 1.8.0rc2 code into svn and see if it makes a difference. The recordserver does not exit with a freevo recordserver stop. I merge the code from 1.8.0rc2 for the recordserver first to see when it start shutting down again first may be I will find the offending change. Duncan ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel