SOURCES: tpop3d-poll.patch - updated
arekm
arekm at pld-linux.org
Sun Jun 25 22:27:21 CEST 2006
Author: arekm Date: Sun Jun 25 20:27:21 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- updated
---- Files affected:
SOURCES:
tpop3d-poll.patch (1.9 -> 1.10)
---- Diffs:
================================================================
Index: SOURCES/tpop3d-poll.patch
diff -u SOURCES/tpop3d-poll.patch:1.9 SOURCES/tpop3d-poll.patch:1.10
--- SOURCES/tpop3d-poll.patch:1.9 Sun Jun 25 22:21:14 2006
+++ SOURCES/tpop3d-poll.patch Sun Jun 25 22:27:15 2006
@@ -35,7 +35,7 @@
if ((io->accept_blocked_on_read && canread) || (io->accept_blocked_on_write && canwrite)) {
diff -urN tpop3d-1.5.3.org/netloop.c tpop3d-1.5.3/netloop.c
--- tpop3d-1.5.3.org/netloop.c 2006-06-25 20:16:47.000000000 +0200
-+++ tpop3d-1.5.3/netloop.c 2006-06-25 20:54:05.000000000 +0200
++++ tpop3d-1.5.3/netloop.c 2006-06-25 22:26:55.000000000 +0200
@@ -124,7 +124,7 @@
item *t;
vector_iterate(listeners, t) {
@@ -45,7 +45,7 @@
struct sockaddr_in sin, sinlocal;
size_t l = sizeof(sin);
static int tcp_send_buf = -1;
-@@ -550,9 +550,11 @@
+@@ -550,15 +550,17 @@
/* Main select() loop */
while (!foad) {
@@ -58,6 +58,13 @@
if (!post_fork) listeners_pre_select(&n, pfds);
+ connections_pre_select(&n, pfds);
+
+- e = poll(pfds, n + 1, 1000 /* must be smaller than timeout */);
++ e = poll(pfds, n, 1000 /* must be smaller than timeout */);
+ if (e == -1 && errno != EINTR) {
+ log_print(LOG_WARNING, "net_loop: poll: %m");
+ } else if (e >= 0) {
diff -urN tpop3d-1.5.3.org/poll.c tpop3d-1.5.3/poll.c
--- tpop3d-1.5.3.org/poll.c 2006-06-25 20:41:56.000000000 +0200
+++ tpop3d-1.5.3/poll.c 2006-06-25 22:20:47.000000000 +0200
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/tpop3d-poll.patch?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list