Update of /cvsroot/freevo/freevo/src In directory sc8-pr-cvs1:/tmp/cvs-serv5445
Modified Files: childapp.py Log Message: add lock() to make it thread save Index: childapp.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/childapp.py,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** childapp.py 27 Sep 2003 00:36:21 -0000 1.23 --- childapp.py 2 Oct 2003 16:20:55 -0000 1.24 *************** *** 10,13 **** --- 10,16 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.24 2003/10/02 16:20:55 dischi + # add lock() to make it thread save + # # Revision 1.23 2003/09/27 00:36:21 outlyer # Dischi was right, this probably doesn't do anything... the problem still *************** *** 84,88 **** import os import popen2 ! import threading import signal --- 87,91 ---- import os import popen2 ! import threading, thread import signal *************** *** 117,120 **** --- 120,125 ---- __all_childapps__.append(self) + self.lock = thread.allocate_lock() + prio = 0 if app.find('--prio=') == 0 and not config.RUNAPP: *************** *** 195,198 **** --- 200,204 ---- return + self.lock.acquire() # maybe child is dead and only waiting? try: *************** *** 201,204 **** --- 207,211 ---- if not self.infile.closed: self.infile.close() + self.lock.release() return except OSError: *************** *** 259,262 **** --- 266,270 ---- self.infile.close() self.child = None + self.lock.release() ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog