Nanosleep hangs

Zdeněk Materna zdenek.materna at gmail.com
Thu Mar 3 07:30:45 UTC 2011


2011/3/2 Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>:
> "Zdeněk Materna" <zdenek.materna at gmail.com> wrote:
>>
>> Hello, I'm new to embedded Linux developing and I would like to ask - is
>> there any issue with nanosleep function? Clock_nanosleep is unimplemented in
>> uClibc (right?) so I planed to use nanosleep instead of it. But it doesn't
>> work for me - program hangs on it forever. Usleep works, but it's not good
>> alternative, isn't it? I'm also going to utilize timers - are there any
>> issues about them? However google didn't give me much answers. Thanks for
>> response and sorry for poor english. My environment: uClibc 0.9.31, ARM
>> (AT91SAM9260), kernel 2.6.33.7 (with RT path and hi-res timers enabled).
>> Best regards, Zdenek Materna
>> ________________________________
>> uClibc mailing list uClibc at uclibc.org
>> http://lists.busybox.net/mailman/listinfo/uclibc
>
> Hi,
>
> clock_nanosleep was added just recently (to master).
> Can you provide a small, self-contained example for the hang you see with
> nanosleep, please?

Hello,

it was problem between chair and keyboard... As usually :-/

Zdenek


More information about the uClibc mailing list