rbb 99/05/23 19:23:43
Modified: apr/network_io/unix poll.c Log: Argh! There is a bug in the linux libc routines. We have to pass -1 exactly into poll if we want to wait indefinitely, instead of any negative number as Revision Changes Path 1.8 +5 -1 apache-apr/apr/network_io/unix/poll.c Index: poll.c =================================================================== RCS file: /home/cvs/apache-apr/apr/network_io/unix/poll.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- poll.c 1999/05/24 02:04:08 1.7 +++ poll.c 1999/05/24 02:23:43 1.8 @@ -130,7 +130,11 @@ pollset[i].events = aprset[i].events; } - rv = poll(pollset, nsds, timeout * 1000); + if (timeout != -1) { + timeout *= 1000; + } + + rv = poll(pollset, nsds, timeout); for (i = 0; i < nsds; i++) { aprset[i].revents = get_revent(pollset[i].revents);