On Jun 29, 6:36 pm, [EMAIL PROTECTED] wrote:
I'm writing a program which has to execute a command, get its output
and show it on a treeview.
This command runs for a very long time.
I want to end the execution of the command when the user closes my
application.
Right now I'm using an object
A.T.Hofkamp [EMAIL PROTECTED] wrote:
In principle, you should only kill your own child processes, your child
process
should handle its own childs (your grant child processes). SIGTERM is one
way.
Another solution often adopted is to close the stdin of the child.
That is a good idea.
I'm writing a program which has to execute a command, get its output
and show it on a treeview.
This command runs for a very long time.
I want to end the execution of the command when the user closes my
application.
Right now I'm using an object my_child of type subprocess.Popen to
execute the
On 2007-06-29, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I want to end the execution of the command when the user closes my
application.
Right now I'm using an object my_child of type subprocess.Popen to
execute the command, inside a thread with an infinite loop where we
constantly ask for