From: Andre Noll Date: Thu, 8 Mar 2018 20:39:24 +0000 (+0100) Subject: send_common: Remove outdated comment. X-Git-Tag: v0.6.2~32 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=8127db94d1773c959f0d26026cbe74811eb94d73 send_common: Remove outdated comment. Commit 8dab386f (Rework para_accept()) from eight years ago changed the function to receive also a pointer to the read fd set and pass this pointer to para_accept() which performs the check for readability of the socket file descriptor. Since then the comment which says that the caller must check the fd set is stale. --- diff --git a/send_common.c b/send_common.c index acb7aa6d..71c33b04 100644 --- a/send_common.c +++ b/send_common.c @@ -277,9 +277,8 @@ void generic_com_off(struct sender_status *ss) * \param ss The sender whose listening fd is ready for reading. * \param rfds Passed to para_accept(), * - * This must be called only if the socket fd of \a ss is ready for reading. It - * calls para_accept() to accept the connection and performs the following - * actions on the resulting file descriptor \a fd: + * This calls para_accept() and performs the following actions on the resulting + * file descriptor fd: * * - Checks whether the maximal number of connections are exceeded. * - Sets \a fd to nonblocking mode.