Re: Some strangeness---

Allanah Myles (dossy@sotm.rutgers.edu)
Tue, 19 Mar 1996 09:49:02 -0500 (EST)


> sleep() doesn't work, it just hangs the program (strace gives output
> that looks like it's stuckin a SIGALRM loop)
>
> Check the strace() output to make sure libc is calling setitemer()
> right before the sigpause(). This is the "usual" libc implementation
> of sleep(foo).

I'll have to examine strace() output really carefully, but I just know
that when it tries to sleep(1), it loops infinately at that point.

void main(void)
{
printf("foo\n");
sleep(1);
printf("bar\n");
}

Never see the bar. Guess I must have drunk too much.

-Dossy

-- 
URL: http://remus.rutgers.edu/~dossy --- E-MAIL: mailto:dossy@remus.rutgers.edu
    Now I'm who I want to be, where I want to be, doing what I've always said I
    would and yet I feel I haven't won at all...      (Aug 9, 95: Goodbye, JG.)
"You should change your .sig; not that the world revolves around me." -s. sadie