[project @ 2000-01-17 17:33:30 by simonmar]
Put a giant loop around awaitEvent, to protect against awaitEvent(rtsTrue) returning with no threads to run. This can happen if we try to delay for some time X, and select(2) decides to wait for a shorter time X-\delta instead. It appears that Solaris is more prone to doing this than Linux. This fixes the "schedule: invalid whatNext field" crashes that people may have seen.
Showing with 153 additions and 145 deletions