Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Question On signals in perl

by Zaxo (Archbishop)
on Aug 01, 2005 at 13:31 UTC ( [id://479888]=note: print w/replies, xml ) Need Help??


in reply to Question On signals in perl

$SIG{HUP} is the handler for the hangup signal which is sent to a process when it loses its controlling terminal. That happens, for instance, when a user logs out with a process running in background. A daemon process has no controlling terminal, so SIGHUP is available and is by custom used to tell the daemon to re-read its configuration files and re-initialize.

$SIG{TERM} is the handler for the process termination signal.

See man 7 signal for a list of signals and their default handlers. In most cases the system's default handler is sufficient and you don't need to write one of your own. It's best to not introduce unusual signal handling.

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-25 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found