Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: best way to kill a spawned process

by redss (Monk)
on Feb 05, 2013 at 17:19 UTC ( #1017225=note: print w/ replies, xml ) Need Help??

Comment on Re^2: best way to kill a spawned process
Re^3: best way to kill a spawned process
by Anonymous Monk on Feb 05, 2013 at 17:44 UTC
    Take his choice of signal with a large grain of salt [1]:
    No no no.  Don't use kill -9.
    
    It doesn't give the process a chance to cleanly:
    
    1) shut down socket connections
    
    2) clean up temp files
    
    3) inform its children that it is going away
    
    4) reset its terminal characteristics
    
    and so on and so on and so on.
    
    Generally, send 15, and wait a second or two, and if that doesn't
    work, send 2, and if that doesn't work, send 1.  If that doesn't,
    REMOVE THE BINARY because the program is badly behaved!
    
    Don't use kill -9.  Don't bring out the combine harvester just to tidy
    up the flower pot.
    
    Just another Useless Use of Usenet,

    [1] http://www.partmaps.org/era/unix/award.html#uuk9letter

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2014-07-25 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (171 votes), past polls