We don't bite newbies here... much | |
PerlMonks |
Re^4: How to portably stop processes?by LanX (Saint) |
on Mar 31, 2023 at 20:58 UTC ( [id://11151396]=note: print w/replies, xml ) | Need Help?? |
> > > > The PID returned from fork is apparently useless. > > Did you test your "solution" against his setting? > Yes, I have tested my answer on Windows XP, Windows 7, and Windows 10 To be clear, the OP is using Perl commands (!) like $child_pid = fork , that's the "setting" you have to test. You just copied the whole documentation (~ 70 lines) for a Windows command named "taskkill", but not a bit of Perl code. Now, if you say you were able to use taskkill to kill a $child_pid returned from a Perl ° fork without the problems the OP described, I (and others) would be very pleased to see that Perl code. So please show us your test, no matter which version of Windows. This would merit a lot of upvotes. > why do you downvote my answer? How do you want to know that I downvoted your answer?
Cheers Rolf °) please note the OP's use of the word "portably".
In Section
Seekers of Perl Wisdom
|
|