in reply to Re^2: Killing a process on Windows (Win32::Process question)
in thread Killing a process on Windows (Win32::Process question)

If I understand you right, Win32::Job won't help me in this case.

Actually, it probably will. According to the docs:

By default, processes created using CreateProcess by a process associated with a job are associated with the job;

Which mean if you create a job (a Win32::Job), and then associate the top level process you start with that job, then any processes it spawns will also be associated with that job. You should then be able to kill them all by killing the job.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^3: Killing a process on Windows (Win32::Process question)

Replies are listed 'Best First'.
Re^4: Killing a process on Windows (Win32::Process question)
by rovf (Priest) on May 15, 2009 at 08:06 UTC

    Thanks a lot!!! I will try this alternative!

    -- 
    Ronald Fischer <ynnor@mm.st>