SOURCES: tpop3d-poll.patch - up

arekm arekm at pld-linux.org
Sun Jun 25 20:54:25 CEST 2006


Author: arekm                        Date: Sun Jun 25 18:54:25 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- up

---- Files affected:
SOURCES:
   tpop3d-poll.patch (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SOURCES/tpop3d-poll.patch
diff -u SOURCES/tpop3d-poll.patch:1.7 SOURCES/tpop3d-poll.patch:1.8
--- SOURCES/tpop3d-poll.patch:1.7	Sun Jun 25 20:50:31 2006
+++ SOURCES/tpop3d-poll.patch	Sun Jun 25 20:54:20 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:50:08.000000000 +0200
++++ tpop3d-1.5.3/netloop.c	2006-06-25 20:54:05.000000000 +0200
 @@ -124,7 +124,7 @@
      item *t;
      vector_iterate(listeners, t) {
@@ -45,12 +45,16 @@
              struct sockaddr_in sin, sinlocal;
              size_t l = sizeof(sin);
              static int tcp_send_buf = -1;
-@@ -553,6 +553,8 @@
-         int n = 0, e;
+@@ -550,9 +550,11 @@
+     
+     /* Main select() loop */
+     while (!foad) {
+-        int n = 0, e;
++        int n = 0, i, e;
  
         memset(pfds, 0, max_connections * sizeof(struct pollfd));
-+       for (n = 0; n < max_connections; n++)
-+	       pfds[n].fd = -1;
++       for (i = 0; i < max_connections; i++)
++	       pfds[i].fd = -1;
  
          if (!post_fork) listeners_pre_select(&n, pfds);
  
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/tpop3d-poll.patch?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list