src/e/c/ecell-HEAD/ecell3/trunk/ecell/frontend/model-editor/ecell/ui/model_editor/Runtime.py ecell(Download)
def killProcess( self, processID ):
if os.name == 'nt':
try:
subprocess.TerminateProcess( processID, 0 )
except:
pass
else:
src/u/m/umit-HEAD/umitCore/NmapCommand.py umit(Download)
# subprocess's method to see how it works.
# In the meantime, this should not raise any exception because
# we don't care if it killed the process as it never killed it anyway.
from subprocess import TerminateProcess
TerminateProcess(self.command_process._handle, 0)
except:
pass