This is the mail archive of the
mailing list for the GDB project.
Using sleep and nanosleep
- From: logitech <supriya dot rao17 at gmail dot com>
- To: gdb at sourceware dot org
- Date: Thu, 16 Jun 2011 21:28:30 -0700 (PDT)
- Subject: Using sleep and nanosleep
I forked a thread from the gdb main program and then used sleep() to suspend
its execution for required time. But sleep doesnt seem to work. On the other
hand if sleep is called in any function belonging to gdb it works. Does this
have anything to do with forking a thread?
The same issue is there with nanosleep too. The alarm() call works though
when called from the thread.
Any information as to why this happens?
View this message in context: http://old.nabble.com/Using-sleep-and-nanosleep-tp31866309p31866309.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.