On Mon, Oct 31, 2011 at 04:18:22AM +0100, Ben Noordhuis <[email protected]>
wrote:
> epoll_init() leaks a file descriptor if it's called when the process
> has no open file descriptors.
When there are no open fds, then epoll_create1 will return -1 and will not
allocate an fd.
If epoll_create1 ever returns 0 you basically have a security issue in your
program, and it's indeed best to leave it alone.
(fd 0 is always stdin, it's always in use and can never leak).
--
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/cgi-bin/mailman/listinfo/libev