On Wed, Feb 03, 2016 at 11:35:15AM +0300, Georgy Kirichenko 
<[email protected]> wrote:
> But installed callback can't do nothing to break evpipe_init loop.

That's clearly not true, the most obvious thing (but not the only thing)
the callback could do is create some free fds, either by increasing the fd
limit, or by freeing some fds.

> To fix this i create a patch, that allow early descriptors initialization at 
> ev_loop_new, that can return NULL in case of errors. 

How does the patch fix this? When libev needs a pipe (or similar) at
runtime and doesn't have enough fds, it will run into the same or similar
problems.

file descriptors are a limited resource, like memory - you can't fix out
of memory conditions by checking at initialisation time and hoping that
dynamic allocations later will always succeed.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/mailman/listinfo/libev

Reply via email to