/*
- * $Id: DiskdIOStrategy.cc,v 1.2 2005/01/03 16:08:26 robertc Exp $
+ * $Id: DiskdIOStrategy.cc,v 1.3 2006/05/08 19:57:30 wessels Exp $
*
* DEBUG: section 79 Squid-side DISKD I/O functions.
* AUTHOR: Duane Wessels
* we're "blocking" on this SD we can also handle callbacks
* from other SDs that might be ready.
*/
- while (away > magic2) {
- struct timeval delay = {0, 1};
+ struct timeval delay = {0, 1};
+ while (away > magic2) {
select(0, NULL, NULL, NULL, &delay);
Store::Root().callback();
* we're "blocking" on this SD we can also handle callbacks
* from other SDs that might be ready.
*/
- while (away > magic2) {
- struct timeval delay = {0, 1};
+ struct timeval delay = {0, 1};
+ while (away > magic2) {
select(0, NULL, NULL, NULL, &delay);
Store::Root().callback();