This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients benjamin.peterson, serhiy.storchaka, taleinat, vstinner
Date 2018-06-22.14:06:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529676386.6.0.56676864532.issue32568@psf.upfronthosting.co.za>
In-reply-to
Content
> Also sizehint=0 was rejected before 2fb9ae9dfc5a6830d902332ba93b13387e292ddb. Now it is accepted.

DESCRIPTION
       epoll_create() creates a new epoll(7) instance.  Since Linux 2.6.8, the
       size argument is ignored, but must be  greater  than  zero;  see  NOTES
       below.

(...)

NOTES
       In  the  initial  epoll_create()  implementation,  the  size   argument
       informed  the  kernel of the number of file descriptors that the caller
       expected to add to the epoll instance.  The kernel used  this  informa‐
       tion  as a hint for the amount of space to initially allocate in inter‐
       nal data structures describing events.  (If necessary, the kernel would
       allocate  more  space  if the caller's usage exceeded the hint given in
       size.)  Nowadays, this hint is no longer required (the  kernel  dynami‐
       cally sizes the required data structures without needing the hint), but
       size must still be greater than zero, in order to ensure backward  com‐
       patibility when new epoll applications are run on older kernels.
History
Date User Action Args
2018-06-22 14:06:26vstinnersetrecipients: + vstinner, taleinat, benjamin.peterson, serhiy.storchaka
2018-06-22 14:06:26vstinnersetmessageid: <1529676386.6.0.56676864532.issue32568@psf.upfronthosting.co.za>
2018-06-22 14:06:26vstinnerlinkissue32568 messages
2018-06-22 14:06:26vstinnercreate