Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv23792/src
Modified Files:
childapp.py
Log Message:
more debug
Index: childapp.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/childapp.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** childapp.py 11 Oct 2003 11:21:14 -0000 1.27
--- childapp.py 14 Oct 2003 17:57:32 -0000 1.28
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.28 2003/10/14 17:57:32 dischi
+ # more debug
+ #
# Revision 1.27 2003/10/11 11:21:14 dischi
# use util killall function
***************
*** 98,101 ****
--- 101,105 ----
import threading, thread
import signal
+ import traceback
import config
***************
*** 133,136 ****
--- 137,144 ----
self.lock = thread.allocate_lock()
+ if config.DEBUG > 1:
+ _debug_('starting new child: %s', app)
+ traceback.print_stack()
+
prio = 0
if app.find('--prio=') == 0 and not config.RUNAPP:
***************
*** 204,209 ****
--- 212,222 ----
__all_childapps__.remove(self)
+ if config.DEBUG > 1:
+ _debug_('killing my child')
+ traceback.print_stack()
+
# killed already
if not self.child:
+ _debug_('already dead', 2)
return
***************
*** 212,215 ****
--- 225,229 ----
try:
if os.waitpid(self.child.pid, os.WNOHANG)[0] == self.child.pid:
+ _debug_('done the easy way', 2)
self.child = None
if not self.infile.closed:
***************
*** 218,221 ****
--- 232,236 ----
return
except OSError:
+ _debug_('OSError, already dead', 2)
# Already dead?
self.child = None
***************
*** 229,232 ****
--- 244,248 ----
os.kill(self.child.pid, signal)
except OSError:
+ _debug_('OSError, already dead? This should never happen', 2)
# Already dead?
self.child = None
***************
*** 378,381 ****
--- 394,401 ----
def stop(self, cmd=None):
+ if config.DEBUG > 1:
+ _debug_('got stop command')
+ traceback.print_stack()
+
if self.mode != 'play':
_debug_('not playing anymore')
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog