Section: Linux Programmer's Manual (3) Updated: 2010-02-03 Local index
sleep - Sleep for the specified number of seconds
unsigned int sleep(unsigned int seconds);
makes the calling thread sleep until
seconds have elapsed or a signal arrives which is not ignored.
Zero if the requested time has elapsed,
or the number of seconds left to sleep,
if the call was interrupted by a signal handler.
may be implemented using
mixing calls to
is a bad idea.
from a signal handler or modifying the handling of
while sleeping will cause undefined results.
This page is part of release 3.27 of the Linux
A description of the project,
and information about reporting bugs,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 21:55:25 GMT, April 16, 2011