[tpop3d-discuss][PATCH]: poll for tpop3d

Arkadiusz Miskiewicz arekm at pld-linux.org
Thu, 22 Jun 2006 18:14:51 +0200


Hi,

The ,,bad file descriptor'' started appearing heare almost on minute basis.=
=20
The libevent patch was very invasive and required additional library so I'v=
e=20
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=3D1.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 wh=
ich=20
do not provide poll() implementation but it can be easily resolved by using=
=20
something like:
http://mail.python.org/pipermail/python-list/2001-October/069168.html (I gu=
ess=20
there are other, newer wrappers available).

Chris?

=2D-=20
Arkadiusz Mi=B6kiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/