File:  [MW Coherent from dump] / coherent / a / usr / man / COHERENT / alarm
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



alarm()                COHERENT System Call               alarm()




Set a timer

aallaarrmm(_n)
uunnssiiggnneedd _n;

alarm sets  a timer associated with the  requesting process to go
off in  n seconds.  After n seconds, the  system sends the signal
SIGALRM to the process.  An  argument of zero turns off the alarm
timer.

By  default, the  receipt of  the  SIGALRM signal  terminates the
process.  However,  it may be caught or  ignored by using signal.
Because of  scheduling variation and the  one second granularity,
the action of alarm is predictable only to within one second.

alarm is  useful for such  things as timeouts.   For example, the
login process  on a dial-in port  might hang up the  line after a
sufficient time has elapsed with no user response.

alarm returns the previous alarm value, which represents the time
remaining from  the previous call.  Time  remaining is superseded
by the new alarm value.

***** See Also *****

COHERENT system calls, signal(), sleep()






























COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.