Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How can I kill subprocesses when the main script dies?

by merlyn (Sage)
on May 11, 2000 at 02:10 UTC ( [id://11080]=note: print w/replies, xml ) Need Help??


in reply to How can I kill subprocesses when the main script dies?

An END block won't be executed unless a signal handler has been established, even if the signal handler simply dies.

The briefest way to do that is something like:

$SIG{INT} = sub { die };

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-28 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found