Index: ossp-pkg/pth/ChangeLog RCS File: /v/ossp/cvs/ossp-pkg/pth/ChangeLog,v rcsdiff -q -kk '-r1.555' '-r1.556' -u '/v/ossp/cvs/ossp-pkg/pth/ChangeLog,v' 2>/dev/null --- ChangeLog 2002/01/27 12:34:29 1.555 +++ ChangeLog 2002/01/27 12:39:10 1.556 @@ -21,6 +21,9 @@ Changes between 1.4.0 and 1.4.1 (24-Mar-2001 to 27-Jan-2002) + *) Correctly support PTH_FDMODE_NONBLOCK in pth_connect and pth_accept. + [Archie Cobbs ] + *) Fixed typos in manual page. [Michael Schloh v. Bennewitz , Takashi Ishihara ] Index: ossp-pkg/pth/THANKS RCS File: /v/ossp/cvs/ossp-pkg/pth/THANKS,v rcsdiff -q -kk '-r1.82' '-r1.83' -u '/v/ossp/cvs/ossp-pkg/pth/THANKS,v' 2>/dev/null --- THANKS 2001/11/30 12:40:31 1.82 +++ THANKS 2002/01/27 12:39:10 1.83 @@ -1,4 +1,4 @@ - ____ _ _ + | _ \| |_| |__ ``There is enough for the need of | |_) | __| '_ \ everyone in this world, but not | __/| |_| | | | for the greed of everyone.'' @@ -22,6 +22,7 @@ o Edwin Brown o Dan Buckler o Mark Burton + o Archie Cobbs o Jon Cook o Philippe Defert o David Dureau Index: ossp-pkg/pth/pth_high.c RCS File: /v/ossp/cvs/ossp-pkg/pth/pth_high.c,v rcsdiff -q -kk '-r1.81' '-r1.82' -u '/v/ossp/cvs/ossp-pkg/pth/pth_high.c,v' 2>/dev/null --- pth_high.c 2002/01/27 11:03:40 1.81 +++ pth_high.c 2002/01/27 12:39:10 1.82 @@ -496,7 +496,7 @@ errno_shield { pth_fdmode(s, fdmode); } /* if it is still on progress wait until socket is really writeable */ - if (rv == -1 && errno == EINPROGRESS) { + if (rv == -1 && errno == EINPROGRESS && fdmode != PTH_FDMODE_NONBLOCK) { ev = pth_event(PTH_EVENT_FD|PTH_UNTIL_FD_WRITEABLE|PTH_MODE_STATIC, &ev_key, s); if (ev_extra != NULL) pth_event_concat(ev, ev_extra, NULL); @@ -541,7 +541,8 @@ /* poll socket via accept */ ev = NULL; while ((rv = pth_sc(accept)(s, addr, addrlen)) == -1 - && (errno == EAGAIN || errno == EWOULDBLOCK)) { + && (errno == EAGAIN || errno == EWOULDBLOCK) + && fdmode != PTH_FDMODE_NONBLOCK) { /* do lazy event allocation */ if (ev == NULL) { ev = pth_event(PTH_EVENT_FD|PTH_UNTIL_FD_READABLE|PTH_MODE_STATIC, &ev_key, s);