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?


Dischi

-- 
Real Men don't make backups.  They upload it via ftp and let the world
mirror it.
        -- Linus Torvalds

Attachment: pgpzzQ2MbLy3J.pgp
Description: PGP signature

-------------------------------------------------------------------------
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

Reply via email to