This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Using sleep and nanosleep


Hi,
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?
Thanks.
-- 
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]