Re: nanosleep issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux