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

Re: Failed Kills

by Zecho (Hermit)
on Oct 19, 2001 at 17:04 UTC ( [id://120071]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Failed Kills

actually for one, on a linux box, it would be

kill -9 $pid

that is assuming you are calling the system's kill function and not a sub.
kill 9 $pid will attempt to literally kill pid 9 and not kill $pid with a signal of 9

Update: as I find by doing the research, perlfunc:kill and perlman:perlipc show that my suggestion sucked, using kill with -9 actually works contrary to the shell command, and kills the process group.

hmmm, now I know there's a kill() function.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://120071]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.