Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 1996 09:59:39 -0600
From:      peter@taronga.com (Peter da Silva)
To:        doc@freebsd.org
Subject:   Suggested change to the sleep(3) man page
Message-ID:  <199601291559.JAA18262@bonkers.taronga.com>

next in thread | raw e-mail | index | archive | help
Thanks to Josh MacDonald for noticing this. Here's what I would put in...

.Sh RETURN VALUES
The
.Fn sleep
function returns the number of seconds remaining to complete the operation. If
sleep is interrupted or cannot allocate a timer it may will return the value
needed to be passed to a subsequent sleep to complete the necessary delay.
.Sh WARNING
In practice the FreeBSD implementation will not be interrupted: it will
always return the original argument or zero. Code that depends on
sleep being interrupted (using it as a timed pause, for example) needs
to be recoded to use
.Xr select 2
or some other delay mechanism. Code that
calls
.Fn sleep
repeatedly until it returns zero may busy-wait until a timer
is available.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601291559.JAA18262>