Jason Tackaberry wrote: > On Sun, 2008-03-02 at 09:00 -0500, Jason Tackaberry wrote: >> SIGINT isn't something kaa should be doing.
I do not remember why we do it. We just raise SystemExit, I guess that
is the same no system handler will do. But we need it for twisted, in
that case kaa uses twisted shutdown on the signal.
>> If you want to restore the
>> SIGINT handler after you import directfb (and directfb actually is
>> replacing that handler), you can do:
>>
>> import signal
>> signal.signal(signal.SIGINT, signal.default_int_handler)
>
> I should add that if you do this, you will need to see what sort of
> cleanup dfb's SIGINT handler is doing, and make sure that happens if you
> decide to exit. You could fetch the existing handler and then call it
> later.
>
> import signal
> dfb_handler = signal.gethandler(signal.SIGINT)
> signal.signal(signal.SIGINT, signal.default_int_handler)
> kaa.main()
> dfb_handler()
Yes. Maybe we should only change the system handler if no one is
installed. But what happens in dfb on the system handler? We need a
clean shutdown somehow.
Dischi
--
"Writing in C or C++ is like running a chain saw with all the safety
guards removed."
-Bob Gray
pgp3wb3TLBRWJ.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 [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
