Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv14345
Modified Files:
childapp.py
Log Message:
use util killall function
Index: childapp.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/childapp.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** childapp.py 4 Oct 2003 18:42:45 -0000 1.26
--- childapp.py 11 Oct 2003 11:21:14 -0000 1.27
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.27 2003/10/11 11:21:14 dischi
+ # use util killall function
+ #
# Revision 1.26 2003/10/04 18:42:45 dischi
# do not kill a dead child
***************
*** 99,102 ****
--- 102,107 ----
import osd
import rc
+ import util
+
from event import *
***************
*** 141,147 ****
self.binary = app.lstrip()
- if self.binary.find(' ') > 0:
- self.binary=self.binary[:self.binary.find(' ')]
-
start_str = '%s %s' % (config.RUNAPP, app)
--- 146,149 ----
***************
*** 263,267 ****
# ugly but it's the _only_ way to stop this nasty app
print 'Oops, command refuses to die, try bad hack....'
! os.system('killall %s' % self.binary)
for i in range(20):
if self.outfile.closed:
--- 265,269 ----
# ugly but it's the _only_ way to stop this nasty app
print 'Oops, command refuses to die, try bad hack....'
! util.killall(self.binary, sig=15)
for i in range(20):
if self.outfile.closed:
***************
*** 272,276 ****
# Try killall -9 as last chance
print 'Try harder to kill the app....'
! os.system('killall -9 %s' % self.binary)
for i in range(20):
if self.outfile.closed:
--- 274,278 ----
# Try killall -9 as last chance
print 'Try harder to kill the app....'
! util.killall(self.binary, sig=9)
for i in range(20):
if self.outfile.closed:
***************
*** 377,380 ****
--- 379,383 ----
def stop(self, cmd=None):
if self.mode != 'play':
+ _debug_('not playing anymore')
return
-------------------------------------------------------
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