in reply to Re^2: Kill a child nicely
in thread Kill a child nicely

this might not work on Windows

Exactly. Windows has no concept of signals. And the only way to terminate a process from the outside is a nasty trick that makes the victim process commit suicide (see Re: Handling killing the perl process).

So, are you on Windows or Unix? Knowing that inforrmation will get you more useful answers. Most answers you got so far are for Unix and won't work on Windows.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^4: Kill a child nicely
by perlfan (Parson) on Sep 15, 2023 at 16:13 UTC
    Oof .. missed this is on Windows. Carry on!