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»
In reply to Re^4: Killing subprocess in windows
by karlgoethebier
in thread Killing subprocess in windows
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |