SOURCES: tpop3d-poll.patch - updated
arekm
arekm at pld-linux.org
Sun Jun 25 20:45:07 CEST 2006
Author: arekm Date: Sun Jun 25 18:45:02 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- updated
---- Files affected:
SOURCES:
tpop3d-poll.patch (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SOURCES/tpop3d-poll.patch
diff -u SOURCES/tpop3d-poll.patch:1.5 SOURCES/tpop3d-poll.patch:1.6
--- SOURCES/tpop3d-poll.patch:1.5 Sun Jun 25 20:08:04 2006
+++ SOURCES/tpop3d-poll.patch Sun Jun 25 20:44:57 2006
@@ -1,24 +1,56 @@
-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:02:19.000000000 +0200
-+++ tpop3d-1.5.3/poll.c 2006-06-25 20:03:11.000000000 +0200
-@@ -7,6 +7,8 @@
- *
- */
-
-+#include "configuration.h"
-+
- #ifndef HAVE_POLL
-
- static const char rcsid[] = "$Id$";
-diff -urN tpop3d-1.5.3.org/poll.h tpop3d-1.5.3/poll.h
---- tpop3d-1.5.3.org/poll.h 2006-06-25 20:02:19.000000000 +0200
-+++ tpop3d-1.5.3/poll.h 2006-06-25 20:02:46.000000000 +0200
-@@ -11,6 +11,8 @@
- #ifndef __POLL_H_ /* include guard */
- #define __POLL_H_
-
-+#include "configuration.h"
-+
- #ifdef HAVE_POLL
+diff -urN tpop3d-1.5.3.org/ioabs_tcp.c tpop3d-1.5.3/ioabs_tcp.c
+--- tpop3d-1.5.3.org/ioabs_tcp.c 2006-06-25 20:16:47.000000000 +0200
++++ tpop3d-1.5.3/ioabs_tcp.c 2006-06-25 20:43:25.000000000 +0200
+@@ -82,7 +82,7 @@
+ struct ioabs_tcp *io;
+ io = (struct ioabs_tcp*)c->io;
+
+- if (pfds[c->s].revents == POLLIN) {
++ if (pfds[c->s].revents & POLLIN) {
+ /* Can read data. */
+ do {
+ char *r;
+@@ -111,7 +111,7 @@
+ }
+ }
+
+- if (pfds[c->s].revents == POLLOUT && buffer_available(c->wrb) > 0) {
++ if (pfds[c->s].revents & POLLOUT && buffer_available(c->wrb) > 0) {
+ /* Can write data. */
+ n = 1;
+ do {
+diff -urN tpop3d-1.5.3.org/ioabs_tls.c tpop3d-1.5.3/ioabs_tls.c
+--- tpop3d-1.5.3.org/ioabs_tls.c 2006-06-25 20:16:47.000000000 +0200
++++ tpop3d-1.5.3/ioabs_tls.c 2006-06-25 20:43:36.000000000 +0200
+@@ -252,8 +252,8 @@
+ struct ioabs_tls *io;
+ io = (struct ioabs_tls*)c->io;
+
+- canread = pfds[c->s].revents == POLLIN;
+- canwrite = pfds[c->s].revents == POLLOUT;
++ canread = pfds[c->s].revents & POLLIN;
++ canwrite = pfds[c->s].revents & POLLOUT;
+
+ /* First, accept handling. */
+ 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:43:02.000000000 +0200
+@@ -124,7 +124,7 @@
+ item *t;
+ vector_iterate(listeners, t) {
+ listener L = (listener)t->v;
+- if (pfds[L->s].revents == POLLIN) {
++ if (pfds[L->s].revents & POLLIN) {
+ struct sockaddr_in sin, sinlocal;
+ size_t l = sizeof(sin);
+ static int tcp_send_buf = -1;
+@@ -552,7 +552,7 @@
+ while (!foad) {
+ int n = 0, e;
+
+- memset(pfds, 0, max_connections * sizeof(struct pollfd));
++ memset(pfds, -1, max_connections * sizeof(struct pollfd));
+
+ if (!post_fork) listeners_pre_select(&n, pfds);
- #include <sys/poll.h>
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/tpop3d-poll.patch?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list