how to terminate a process?
Miki Tebeka
miki.tebeka at zoran.com
Sun May 23 05:58:09 EDT 2004
Hello Wong,
> I am developing two app on Windows, one is a GUI using wxPython and
> the other is like a daemon process. The GUI app will have a start/stop
> button to control the excution of the daemon. While I know how to use
> os.popen2() to start my daemon, I can't figure out a way to stop it
> 'nicely'... Is there anything that I can do?
You can catch signals on your daemon process and either hack some win32
code (using PostMessage I think) to send signal, or you can use pskill
from sysinternall or cygwins kill to send signals.
HTH.
--
-------------------------------------------------------------------------
Miki Tebeka <miki.tebeka at zoran.com>
http://www.cs.bgu.ac.il/~tebeka
The only difference between children and adults is the price of the toys.
More information about the Python-list
mailing list