Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] milter-greylist-2.0.2 crash

2006-01-27 by Matthias Scheler

On Fri, Jan 27, 2006 at 10:19:59AM +0200, Eugene Filatov wrote:
> As we found before, "usleep" is thread unsafe on solaris 8.
> what about using "poll" instead of "usleep"?
> 
> Something like:
> 
> poll(NULL, NULL, 1000);

poll() takes a timeout value in milliseconds. That original code only
waited 10 microseconds. '(void) poll(NULL, 0, 1);' seems to be more
advisable.

	Kind regards

-- 
Matthias Scheler                                  http://scheler.de/~matthias/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.