Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: Killing subprocess in windows

by karlgoethebier (Abbot)
on May 21, 2021 at 11:20 UTC ( #11132849=note: print w/replies, xml ) Need Help??


in reply to Re^3: Killing subprocess in windows
in thread Killing subprocess in windows

Yes, i know you don’t want to spawn…

But consider something like this:

use strict; use warnings; use threads; use MCE::Hobo; my $hobo = MCE::Hobo->create( sub { …; }); my $pid = $hobo->pid(); # $hobo->join();

Update:

«I though about sending a 'kill', but Perl doesn't seem to give me the PID.»

Now you have one to kill.

«The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2021-10-17 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (71 votes). Check out past polls.

    Notices?