mirror of https://github.com/mkerrisk/man-pages
alarm.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
8c1cb77bee
commit
415573e691
10
man2/alarm.2
10
man2/alarm.2
|
@ -33,7 +33,7 @@ alarm \- set an alarm clock for delivery of a signal
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
.B #include <unistd.h>
|
.B #include <unistd.h>
|
||||||
.sp
|
.PP
|
||||||
.BI "unsigned int alarm(unsigned int " seconds );
|
.BI "unsigned int alarm(unsigned int " seconds );
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
@ -43,11 +43,11 @@ arranges for a
|
||||||
signal to be delivered to the calling process in
|
signal to be delivered to the calling process in
|
||||||
.I seconds
|
.I seconds
|
||||||
seconds.
|
seconds.
|
||||||
|
.PP
|
||||||
If
|
If
|
||||||
.I seconds
|
.I seconds
|
||||||
is zero, any pending alarm is canceled.
|
is zero, any pending alarm is canceled.
|
||||||
|
.PP
|
||||||
In any event any previously set
|
In any event any previously set
|
||||||
.BR alarm ()
|
.BR alarm ()
|
||||||
is canceled.
|
is canceled.
|
||||||
|
@ -64,7 +64,7 @@ and
|
||||||
.BR setitimer (2)
|
.BR setitimer (2)
|
||||||
share the same timer; calls to one will interfere with use of the
|
share the same timer; calls to one will interfere with use of the
|
||||||
other.
|
other.
|
||||||
|
.PP
|
||||||
Alarms created by
|
Alarms created by
|
||||||
.BR alarm ()
|
.BR alarm ()
|
||||||
are preserved across
|
are preserved across
|
||||||
|
@ -80,7 +80,7 @@ mixing calls to
|
||||||
and
|
and
|
||||||
.BR sleep (3)
|
.BR sleep (3)
|
||||||
is a bad idea.
|
is a bad idea.
|
||||||
|
.PP
|
||||||
Scheduling delays can, as ever, cause the execution of the process to
|
Scheduling delays can, as ever, cause the execution of the process to
|
||||||
be delayed by an arbitrary amount of time.
|
be delayed by an arbitrary amount of time.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
|
|
Loading…
Reference in New Issue