Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Failed Kills

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


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
Node Status?
node history
Node Type: note [id://120071]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2020-12-05 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (63 votes). Check out past polls.

    Notices?