Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Re^3: How to portably stop processes?
in thread How to portably stop processes?

> > > > 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
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery

°) please note the OP's use of the word "portably".

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11151396]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-25 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found