This is the mail archive of the
mailing list for the GDB project.
Re: gdb, pthreads, and sleep
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: drow at mvista dot com, gdb at sources dot redhat dot com
- Date: Mon, 22 Sep 2003 17:54:17 -0400
- Subject: Re: gdb, pthreads, and sleep
mec> int unslept = 9;
mec> while (unslept)
mec> unslept = sleep (unslept);
I'll write up a patch.
drow> See the archives (it's in a PR somewhere, and in gdb@ also) for more
drow> information. Kernel 2.6 will restart the syscall in this case. Many
drow> other interruptible syscalls will not be restarted but that's the best
drow> we can do.
I found this:
Thread receives Interrupted System Call error while waiting on message queue.
I'll write up some doco, too.