nanosleep issue

Eljay Love-Jensen eljay@adobe.com
Thu Jun 5 11:17:00 GMT 2008


Hi Vardhan,

> I get the following and the process seems to hang forever, when I call
> nanosleep. The gdb output is below:
> 
> #0  0xffffe410 in __kernel_vsyscall ()
> #1  0xf7fc15f6 in nanosleep () from /lib/libpthread.so.0
> 
> What is this and am I missing some library. I have included libpthread too.
> Your help will be greatly appreciated.

extern int nanosleep(struct timespec const* rqtp, struct timespec* rmtp);

In your code, what values did you pass into nanosleep in the struct timespec
pointer (the rqtp)?

For the second parameter (rmtp), did you also pass in a result timespec
pointer, or NULL?

Sincerely,
--Eljay



More information about the Gcc-help mailing list