gdb, pthreads, and sleep

Michael Elizabeth Chastain mec@shout.net
Mon Sep 22 21:54:00 GMT 2003


mec>       int unslept = 9;
mec>       while (unslept)
mec>         unslept = sleep (unslept);

drow> Yes.

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:

  http://sources.redhat.com/gdb/bugs/259
  Thread receives Interrupted System Call error while waiting on message queue.

I'll write up some doco, too.

Michael C



More information about the Gdb mailing list