Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
sleep(3) OSS Library Calls Reference Manual
• A blocked SIGALRM signal remains pending once the sleep( ) function returns.
• A SIGALRM signal that is not blocked or ignored causes the sleep( ) function to return.
Upon return, the signal is delivered immediately.
• A signal-catching function that interrupts the sleep( ) function can examine or change the
time in which a SIGALRM signal is generated. Such actions have no effect on the
behavior of the sleep( ) function. The newly scheduled signal is not affected by the return
from the sleep( ) function.
• The effect of a SIGALRM signal is not changed if the process exits a sleep( ) function
call by using the siglongjmp( ) or longjmp( ) function. Whether the signal is blocked
depends on the value of the signal mask when the corresponding sigsetjmp( ) function
was called.
The use of this function with the POSIX User Thread Model library conforms to the following
industry standards:
• IEEE Std 1003.1-2004, POSIX System Application Program Interface
This function does not conform to the async-signal safe requirement of the POSIX.1 standard.
6−74 Hewlett-Packard Company 527187-017