found 448965 5.8.8-9 thanks On 06/11/2007, Matthijs Melchior <[EMAIL PROTECTED]> wrote: > Brendan O'Dea wrote: [drivel about usleep]
Oops, sorry... > Yes, indeed, there is no problem with usleep. The problem I noticed is > with ualarm: > > setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 2000000}}, > 0xbfe91468) = -1 EINVAL (Invalid argument) OK. I've replicated this with 5.8.8-9 and see your problem. On what version did this work for you? I see that there is code in Time/HiRes.xs to emulate ualarm() using setitimer() which seems to correctly set the sec/usec components of the timeval (it_value/it_interval) arguments, but this is not being used with my current libc which has ualarm(). It seems possible that the version which worked for you was built using this emiulated version. The current build is calling ualarm() directly. Note the manual page for ualarm() states that values >= 1000000 may cause EINVAL (as is occuring here). --bod -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]