killing own process in windows

News123 news123 at free.fr
Sun Mar 7 22:08:39 CET 2010


Hi,


How can I kill my own process?

Some multithreaded programs, that I have are unable to stop when ctrl-C
is pressed.
Some can't be stopped with sys.exit()

So I'd just like to terminate my own program.


Examples of non killable (not killable with CTRL-C) programs:
- A program, that started an XMLRPC server with serve_forever
- a program, that started a multiprocessing.Manager with serve_forever


thanks in advance for some ideas.


N



More information about the Python-list mailing list