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]>

Reply via email to