Niels Hald Pedersen wrote:
> I would suspect usleep to encapsulate "the SIGALRM method of waiting"
> (set an alarm, sending process a signal after a given time, wait for the
> signal, handle it),
It doesn't appear to. Sending SIGALRM to the following program doesn't
cause it to terminate any sooner.
#include <unistd.h>
#include <signal.h>
int main(void)
{
signal(SIGALRM, SIG_IGN);
usleep(10 * 1000000);
return 0;
}
--
Glynn Clements <[EMAIL PROTECTED]>
- Waiting for 125msecs. SookYoung Kim
- Re: Waiting for 125msecs. ZioBudda
- Re: Waiting for 125msecs. Marin D
- Re: Waiting for 125msecs. Andrea Arcangeli
- RE: Waiting for 125msecs. Niels Hald Pedersen
- RE: Waiting for 125msecs. Niels Hald Pedersen
- RE: Waiting for 125msecs. Glynn Clements
- RE: Waiting for 125msecs. Andrea Arcangeli
- RE: Waiting for 125msecs. Niels Hald Pedersen
