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

Re: How to kill perl?

by monarch (Priest)
on Nov 07, 2005 at 01:05 UTC ( #506203=note: print w/replies, xml ) Need Help??


in reply to How to kill perl?

Whilst it doesn't cause a core dump, another method for bailing out of perl quickly, is to use the POSIX module..
use POSIX qw(_exit); POSIX::_exit( 0 ); # abort ungracefully (and quickly!)

When perl dies it usually appears to spend lots of time closing file handles. For a forked server that has lots of sockets open this could take some time, so why not let the OS deal with the messy issues and use POSIX::_exit().

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-12-09 01:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?