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
4 int y = Services[i].socket;
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);
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]);