Date: Thu, 16 Feb 2006 00:51:22 +0000 (UTC) From: Maxime Henrion <mux@FreeBSD.org> To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: projects/csup proto.c Message-ID: <200602160051.k1G0pMA5066264@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mux 2006-02-16 00:51:22 UTC FreeBSD projects repository Modified files: csup proto.c Log: After the select() call waiting for the asynchronous connection to finish has returned, we need to retrieve SO_ERROR with getsockopt() to ensure that the connection was really successful. We don't even do asynchronous connections ourselves, but they happen anyway if the connect() call is interrupted and returns EINTR. That makes quite some code for such a rare event, so put it in a new function called proto_waitconnect(). Revision Changes Path 1.70 +35 -13 projects/csup/proto.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602160051.k1G0pMA5066264>