Unix Signals

Unix signals are initiated either by running programs, computer administrators, or operators. One example of a signal is the SIGHUP signal, which is sent to the internet to instruct the Internet Daemon, also known as inetd, to repeat reading the Daemon's configuration file. To interrupt the Daemon's currently running process (ID, or PID), key in the command kill -SIGHUP 4140. It is also possible to use signals to terminate a currently running process. To end the inetd process entirely, key in the following command: kill 4140. This command will, by default, send a SIGTERM signal. If this command fails, then the SIGKILL command is entered to end this process: kill -9 4140. Since this command cannot be controlled, it is usually not a good idea to utilize it to stop a process. This command does not permit a process to clean up or to end gracefully. How are Unix Signals Managed? Every Unix signal results in a default range of effects when used with a Unix program. Computer programmers can opt to code their own applications for a customized response upon the receipt of most signals. The term used to describe these individually designed strings of code is "signal handlers". Signal handlers are unable to redefine two unique signals. In every situation, SIGKILL is used to end a process. Similarly, SIGSTOP always sends a running application to the background when it is in the foreground.


About the Author:
Brad writes on topics such as Unix Signals, Signal Quality, and Signal to Noise Ratio for The Tech FAQ.
This article has been viewed 267 time(s).

Print this article Print this article
Send this Article Tell a Friend about this article


Share this Article

Add to: Digg Add to: Del.ico.us Add to: Slashdot Add to: Technorati Add to: StumbleUpon Add to: Folkd Add to: Linkarena Add to: Simpy Add to: Reddit Add to: Furl Add to: Netscape Add to: Yahoo Add to: Spurl Add to: Google Add to: Blinklist Add to: Blogmarks Add to: Diigo Add to: Newsvine Add to: Blinkbits Add to: Ma.Gnolia Add to: Smarking Add to: Netvouz Information Add to: Icio

Post a Comment

Mail (will not be published) (required)
Articler.com Home

Free Articles Directory

Search
Login
Article Categories

Survey on Articler.com