[tpop3d-discuss][PATCH]: poll for tpop3d
Chris Lightfoot
chris at ex-parrot.com
Thu, 22 Jun 2006 17:58:43 +0100
On Thu, Jun 22, 2006 at 06:14:51PM +0200, Arkadiusz Miskiewicz wrote:
>
> Hi,
>
> The ,,bad file descriptor'' started appearing heare almost on minute basis.
> The libevent patch was very invasive and required additional library so I've
> just replaced entire select() code with poll().
>
> The patch is very small and clean:
> http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/tpop3d-poll.patch?rev=1.2
>
> It works. I'm running it on production machine.
>
> I would like to see it merged. Of course there is a problem with systems which
> do not provide poll() implementation but it can be easily resolved by using
> something like:
> http://mail.python.org/pipermail/python-list/2001-October/069168.html (I guess
> there are other, newer wrappers available).
>
> Chris?
applied in CVS, with a poll(2) wrapper and autoconf test.
Please test ;-)
--
``Some people, when confronted with a problem, think,
`I know, I'll use regular expressions.'
Now they have two problems.'' (Jamie Zawinski)