killing child processes

Padraig at Padraig at
Wed Apr 9 11:49:54 CEST 2003

reinhard wrote:
> I've created a process (some batchfile) which in turn creates some
> long running child processes using the win32api CreateProcess call
> (declaring them as a group).
> Is there a way to terminate (kill) all the child processes in the
> group?

yep. just fork() and setpgrp()
Then all processes will have the
same groupid which you can kill(-groupid)
You can look at the code in FSlint:


More information about the Python-list mailing list