Re: [CODE] Signals

From: Mark A. Heilpern (heilpern@mindspring.com)
Date: 01/26/99


At 08:30 PM 1/26/99 +1100, you wrote:
>I was wondering if someone could give me a brief explanation of what Signals
>actually are, and how they work? I'm just not sure what functions such as
>signal_setup() and perror() actually do. I think they in some way aid in
>debugging, is this correct? Are they actually necessary in the code?

Signals are basically interruptions to your program. When a signal is received
by yourt program, if it is handling the particular signal (there are 32 of
them,
give-or-take for administrative purposes) when it arrives, your program
will stop
what it's doing to execute the coresponding signal handling routine, and when
that routine completes, your program will pick up where it left off.

signal_setup() installs the handlers for certain signals that you need to
handle
in CircleMUD.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST