unlinkd fd. I'll rethink how to fix this.
/*
- * $Id: unlinkd.cc,v 1.57 2006/09/10 03:20:37 adrian Exp $
+ * $Id: unlinkd.cc,v 1.58 2006/09/10 03:49:05 adrian Exp $
*
* DEBUG: section 2 Unlink Daemon
* AUTHOR: Duane Wessels
* of the CPU's time.
*/
if (queuelen >= UNLINKD_QUEUE_LIMIT) {
- usleep(100000);
+
+ struct timeval to;
+ fd_set R;
+ FD_ZERO(&R);
+ FD_SET(unlinkd_rfd, &R);
+ to.tv_sec = 0;
+ to.tv_usec = 100000;
+ select(unlinkd_rfd + 1, &R, NULL, NULL, &to);
}
/*