win32process question

Tom Harris TomH at
Sun Nov 25 23:17:47 CET 2001


I have been playing with starting up processes in Win32, but I also need to
be able to kill them if they hang. I have been using
win32process.TerminateProcess() to do this, but this is not the best method
as it does not allow the killed process to do any cleanup, unload DLLs, kill
child processes, etc. The way Windows would *like* you to do it is to
persuade the process-to-be-killed to call the (Win32 API call)
ExitProcess(), I think that the default ctrl-C and ctrl-break handlers make
a thread that does just this, has anyone made a module to deliver signals to
arbitrary processes for Win32?

Tom Harris, Software Engineer
Optiscan Imaging, 15-17 Normanby Rd, Notting Hill, Melbourne, Vic 3168,
email tomh at     ph +61 3 9538 3333  fax +61 3 9562 7742

This email may contain confidential information. If you have received this
email in error, please delete it immediately,and inform us of the mistake by
return email. Any form of reproduction, or further dissemination of this
email is strictly prohibited. Also, please note that opinions expressed in
this email are those of the author, and are not necessarily those of
Optiscan Pty Ltd.

More information about the Python-list mailing list