On Thu, Jan 26, 2006 at 05:14:43PM +0200, Eugene Filatov wrote:
> My friend which which knows C told me that "usleep" is thread unsafe ...
Where does he have that information from? The Solaris 9 manual page says:
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| MT-Level | Safe |
|_____________________________|_____________________________|
That mean it *is* thread safe.
> What about using "open, malloc+snprintf+write+free" in milter-greylist?
A memory large enough for the whole dump files would dramatically increase
the memory footprint of "milter-greylist". And you don't know how large the
buffer needs to be. Writing code for which manages a small buffer means
reimplementing a lot of stdio.
> It should be the best solution.
I disagree. It would mean writing and maintaing a lot of extra code just
because of a problem with 32Bit binaries under Solaris.
Kind regards
--
Matthias Scheler http://scheler.de/~matthias/Message
Re: [milter-greylist] milter-greylist-2.0.2 crash
2006-01-26 by Matthias Scheler
Attachments
- No local attachments were found for this message.