Date: Tue, 9 Dec 2003 15:40:27 -0800 (PST) From: Daniel Eischen <deischen@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libpthread/thread thr_accept.c thr_connect.c Message-ID: <200312092340.hB9NeRjP035500@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312092340.hB9NeRjP035500>
