From: Andre Ben Hamou <andre@bluetheta.com>
To: Davide Libenzi <davidel@xmailserver.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Multithread select() bug
Date: Mon, 10 May 2004 22:56:48 +0100 [thread overview]
Message-ID: <409FFAA0.4000301@bluetheta.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0405101446570.1156@bigblue.dev.mdolabs.com>
Davide Libenzi wrote:
> Try:
>
> select (socket + 1, &fds, &fds, &fds, &timeout);
> ^^^^^
That does work, but only as a workaround (and not a universally
applicable one). Select *should* return upon the closure of either end
of a socket connection that is in the read-FD-set only (unless I've
completely misunderstood the various references).
Cheers,
Andre Ben Hamou
Imperial College London
--
...and, on the seventh day, God switched off his Mac.
next prev parent reply other threads:[~2004-05-10 21:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-10 21:26 Multithread select() bug Andre Ben Hamou
2004-05-10 21:47 ` Davide Libenzi
2004-05-10 21:56 ` Andre Ben Hamou [this message]
2004-05-10 22:09 ` Davide Libenzi
2004-05-10 21:57 ` Eric Dumazet
2004-05-10 22:11 ` Andre Ben Hamou
2004-05-10 22:31 ` Eric Dumazet
2004-05-10 23:01 ` Andre Ben Hamou
2004-05-11 6:07 ` Armin Schindler
2004-05-11 6:24 ` Eric Dumazet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=409FFAA0.4000301@bluetheta.com \
--to=andre@bluetheta.com \
--cc=davidel@xmailserver.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.