killing child processes

reinhard nadrchal reinhard at
Wed Apr 9 11:58:05 CEST 2003

Sorry, but fork() is not available under win32 (which i'm working on).


Padraig at wrote:
> 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:
> Padraig.

More information about the Python-list mailing list