Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How to kill perl?

by monarch (Priest)
on Nov 07, 2005 at 01:05 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-04-19 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found