In article <[EMAIL PROTECTED]> you wrote: > [-- text/plain, encoding 7bit, 29 lines --] > > "Ralf S. Engelschall" wrote: >> > It appears that the intent of setting a file descriptor to non-blocking >> > mode via pth_fdmode() is to do for the thread what normal non-blocking >> > (without pth involved) does for a process. >> > >> > Is this the intent? If so, that's great.. but then there are a few bugs >> > in the implementation. >> >> Yes, that is the intent. >> >> > While pth_read() and pth_write() have been modified to properly handle >> > the PTH_FDMODE_NONBLOCK case, this still needs to be done for other >> > blocking syscalls, e.g. pth_connect() and pth_accept() to name two. >> > They will block the thread even if the fdmode is PTH_FDMODE_NONBLOCK. >> >> Hmmm... yes, that's correct. My fault, I totally forgot these syscalls. >> >> > I'd really like to see this fixed, and would be willing to supply >> > patches if that would help. >> >> Sure, it certainly helps. Feel free to post a patch. > > Thanks... it's attached (but untested).
Now included in Pth 1.4.1. Thanks. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ GNU Portable Threads (Pth) http://www.gnu.org/software/pth/ User Support Mailing List [EMAIL PROTECTED] Automated List Manager (Majordomo) [EMAIL PROTECTED]