]> git.pld-linux.org Git - packages/cyrus-imapd.git/commitdiff
sanity (or paranoid) check
authorArtur Frysiak <artur@frysiak.net>
Fri, 6 Jul 2001 17:05:36 +0000 (17:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cyrus-imapd-checkfd.patch -> 1.1

cyrus-imapd-checkfd.patch [new file with mode: 0644]

diff --git a/cyrus-imapd-checkfd.patch b/cyrus-imapd-checkfd.patch
new file mode 100644 (file)
index 0000000..596425e
--- /dev/null
@@ -0,0 +1,20 @@
+--- cyrus-imapd-2.0.14/master/master.c.wiget   Fri Jun 22 08:35:25 2001
++++ cyrus-imapd-2.0.14/master/master.c Fri Jun 22 08:38:08 2001
+@@ -1279,7 +1279,7 @@
+           int y = Services[i].socket;
+           int j;
+-          if (FD_ISSET(x, &rfds)) {
++          if (x > 0 && FD_ISSET(x, &rfds)) {
+               r = read(x, &msg, sizeof(int));
+               if (r != sizeof(int)) {
+                   syslog(LOG_ERR, "got weird response from child: %x", i);
+@@ -1299,7 +1299,7 @@
+           }
+           if (Services[i].ready_workers == 0 && 
+-              FD_ISSET(y, &rfds)) {
++              y > 0 && FD_ISSET(y, &rfds)) {
+               /* huh, someone wants to talk to us */
+               spawn_service(&Services[i]);
+           }
This page took 0.03688 seconds and 4 git commands to generate.