Section: Linux Programmer's Manual (3)
Return to Main Contents
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.54 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: 05:39:44 GMT, January 24, 2018