Suspend execution for an interval (POSIX)
- For POSIX conformance, this must be
a nonnegative decimal integer, from 0 to 4294967295,
specifying the number of seconds to suspend execution.
As a QNX Neutrino extension, time can be a floating point number, so you can specify fractions of seconds.
The sleep utility suspends execution for at least the number of seconds specified by the time operand.
- The execution was successfully suspended for at least time seconds, or a SIGALRM signal was received.
- An error occurred.
The sleep utility takes the default action for all signals, except that sleep terminates normally with a zero exit status on receipt of a SIGALRM signal.