This is the mail archive of the gdb@sources.redhat.com 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]

Re: gdb, pthreads, and sleep


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


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