Author: duncan
Date: Sat Mar 8 13:55:54 2008
New Revision: 10481
Log:
Fixed the signal_handler for kaa
Modified:
branches/rel-1/freevo/src/main.py
Modified: branches/rel-1/freevo/src/main.py
==============================================================================
--- branches/rel-1/freevo/src/main.py (original)
+++ branches/rel-1/freevo/src/main.py Sat Mar 8 13:55:54 2008
@@ -322,20 +322,31 @@
_shutting_down = False
-def signal_handler(sig, frame):
+def unix_signal_handler(sig, frame):
"""
the signal handler to shut down freevo
"""
- _debug_('signal_handler(sig, frame)', 1)
+ _debug_('unix_signal_handler(sig=%r, frame=%r)' % (sig, frame), 1)
global _shutting_down
if sig in (signal.SIGTERM, signal.SIGINT):
if _shutting_down:
return
_shutting_down = True
- traceback.print_stack()
shutdown(exit=True)
+def signal_handler():
+ """
+ the signal handler to shut down freevo
+ """
+ _debug_('signal_handler()', 1)
+ global _shutting_down
+ if _shutting_down:
+ return
+ _shutting_down = True
+ shutdown(exit=True)
+
+
def tracefunc(frame, event, arg, _indent=[0]):
"""
function to trace everything inside freevo for debugging
-------------------------------------------------------------------------
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-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog