Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to portably stop processes?

by LanX (Saint)
on Mar 31, 2023 at 17:26 UTC ( #11151386=note: print w/replies, xml ) Need Help??


in reply to How to portably stop processes?

I'm no expert, but fork and perlfork talk at length about not to use kill on children when fork was emulated.

See https://perldoc.perl.org/perlfork#kill()

There are various alternatives listed in perlipc though.

An SSCCE with tests might help provide alternatives.

> If I just use Win32::Process, then this would be a dependency also on Linux

I'm quite sure that you can have install dependencies based on the actual OS. Never tried this tho.

HTH. :)

Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2023-12-04 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (25 votes). Check out past polls.

    Notices?