Le 25 mars 2013 à 18:45, Wietse Venema <wie...@porcupine.org> a écrit :

> Axel Luttgens:
>>> Viktor Dukhovni reports that MacOS poll() support is still broken
>>> for /dev/urandom. This breaks tlsmgr(8), as discussed in:
>>> 
>>>   http://archives.neohapsis.com/archives/postfix/2009-12/thread.html#805
> ...
>> I quickly looked at what Apple did for that problem; seems to be contained 
>> in:
> 
> That appears to be a special-case subset of my third solution
> (enforce read/write time limits with select() instead of poll()).
> 
> Their solution a) handles reading only, and b) unconditionally fails
> on descriptors >= FD_SETSIZE. My solution handles reading and
> writing, and tries to dup() descriptors >= FD_SETSIZE down which
> will practially eliminate the problem.

Yes, I was just busy writing an add-on to my previous mail, when your reply 
arrived...

In fact, it was the idea of making use of the unused_context parameter while 
concentrating the bulk of the change into a single place that appealed me; but 
with of course a nicer handling of the fd > FD_SETSIZE case, by duplication of 
the fd when needed as you suggested.

Now, I didn't think about the case of writing to a device; would this be needed 
in the case of Postfix too?

Axel


Reply via email to