cvs commit: src/lib/libpthread/thread thr_accept.c thr_connect.c
Daniel Eischen
deischen at FreeBSD.org
Tue Dec 9 15:40:42 PST 2003
deischen 2003/12/09 15:40:27 PST
FreeBSD src repository
Modified files:
lib/libpthread/thread thr_accept.c thr_connect.c
Log:
accept() returns a file descriptor when it succeeds which is very
likely to be non-zero. When leaving the cancellation point, check
the return value against -1 to see if cancellation should be
checked. While I'm here, make the same change to connect() just
to be consisitent.
Pointed out by: davidxu
Revision Changes Path
1.2 +1 -1 src/lib/libpthread/thread/thr_accept.c
1.2 +1 -1 src/lib/libpthread/thread/thr_connect.c
More information about the cvs-src
mailing list