]> git.pld-linux.org Git - packages/cyrus-imapd.git/blob - cyrus-imapd-checkfd.patch
596425e30efc8831e3153669d23c2f9d2319c5c8
[packages/cyrus-imapd.git] / cyrus-imapd-checkfd.patch
1 --- cyrus-imapd-2.0.14/master/master.c.wiget    Fri Jun 22 08:35:25 2001
2 +++ cyrus-imapd-2.0.14/master/master.c  Fri Jun 22 08:38:08 2001
3 @@ -1279,7 +1279,7 @@
4             int y = Services[i].socket;
5             int j;
6  
7 -           if (FD_ISSET(x, &rfds)) {
8 +           if (x > 0 && FD_ISSET(x, &rfds)) {
9                 r = read(x, &msg, sizeof(int));
10                 if (r != sizeof(int)) {
11                     syslog(LOG_ERR, "got weird response from child: %x", i);
12 @@ -1299,7 +1299,7 @@
13             }
14  
15             if (Services[i].ready_workers == 0 && 
16 -               FD_ISSET(y, &rfds)) {
17 +               y > 0 && FD_ISSET(y, &rfds)) {
18                 /* huh, someone wants to talk to us */
19                 spawn_service(&Services[i]);
20             }
This page took 0.146041 seconds and 2 git commands to generate.