Re: Terminating a Python program that uses multi-process, multi-threading

2009-01-29 Thread Jesse Noller
On Wed, Jan 28, 2009 at 3:46 PM, akineko wrote: > Hello Python experts, > > I have a program that uses three processes (invoked by > multiprocessing) and several threads. > The program is terminated when ^C is typed (KeyboardInterrupt). > The main process takes the KeyboardInterrupt Exception and

Re: Terminating a Python program that uses multi-process, multi-threading

2009-01-28 Thread akineko
On Jan 28, 1:11 pm, MRAB wrote: > A hacky way of killing the processes would be for the processes to write > their process IDs to the log and then you can write another script which > will parse the log to get the process IDs and then kill the processes > with those IDs. (Left as an exercise for t

Re: Terminating a Python program that uses multi-process, multi-threading

2009-01-28 Thread MRAB
akineko wrote: Hello Python experts, I have a program that uses three processes (invoked by multiprocessing) and several threads. The program is terminated when ^C is typed (KeyboardInterrupt). The main process takes the KeyboardInterrupt Exception and it orderly shutdown the program. It works

Terminating a Python program that uses multi-process, multi-threading

2009-01-28 Thread akineko
Hello Python experts, I have a program that uses three processes (invoked by multiprocessing) and several threads. The program is terminated when ^C is typed (KeyboardInterrupt). The main process takes the KeyboardInterrupt Exception and it orderly shutdown the program. It works fine in normal si