alarm.2: Note semantics of alarm with respect to fork() and execve()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-02-24 07:30:33 +01:00
parent add6b9f633
commit 0895564bb2
1 changed files with 8 additions and 1 deletions

View File

@ -27,7 +27,7 @@
.\" Modified Sun Jul 21 21:25:26 1996 by Andries Brouwer <aeb@cwi.nl>
.\" Modified Wed Nov 6 03:46:05 1996 by Eric S. Raymond <esr@thyrsus.com>
.\"
.TH ALARM 2 2013-04-18 "Linux" "Linux Programmer's Manual"
.TH ALARM 2 2014-02-23 "Linux" "Linux Programmer's Manual"
.SH NAME
alarm \- set an alarm clock for delivery of a signal
.SH SYNOPSIS
@ -64,6 +64,13 @@ and
.BR setitimer (2)
share the same timer; calls to one will interfere with use of the
other.
Alarms created by
.BR alarm()
are preserved across
.BR execve (2)
not are not inherited by children created via
.BR fork (2).
.PP
.BR sleep (3)
may be implemented using