Sunil Shetye <shetye(_at_)bombay(_dot_)retortsoft(_dot_)com>:
So, if __EMX__ or __BEOS__ is defined, this function does not set any
timeout at all!
These are two weird ports that are, as far as I know, not maintained.
There is a more elaborate function interruptible_idle() in idle.c
which seems to be better handled than set_timeout(). It seems to work
on __EMX__ and SLEEP_WITH_ALARM, no mention of __BEOS__.
Probably, the code should be merged to get a better handling of
timeouts.
I'd consider a clean patch to do this.
--
<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>
The kind of charity you can force out of people nourishes about as much as
the kind of love you can buy --- and spreads even nastier diseases.