> A bad race condition in that code. If foo_int is called before your > process > had a chance to get to sleep it'll never be woken before the timeout. > I think this has been the problem. Thanks. Is there any possibility to check if there are processes waiting on a queue? regards Andre