fetchmail-friends
[Top] [All Lists]

Re: [fetchmail]set_timeout() problem...

2001-10-03 22:03:16
Quoting from Eric S. Raymond's mail on Tue, Oct 02, 2001 at 03:37:58AM -0400:
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.

I do not know what issues are involved in EMX and BEOS. However, I
have attached a patch which should work for all POSIX compliant
platforms.

If this patch is acceptable, another similar patch for
interruptible_idle() will be posted.

Note that alarm() is POSIX compliant while setitimer() isn't.

Sunil Shetye.

Attachment: fetchmail-5.9.3-set_timeout.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>