[ovs-dev] [PATCH] netdev-linux: change fd number if 0 was opened

Ben Pfaff blp at nicira.com
Wed Sep 30 17:29:26 UTC 2015


On Wed, Sep 30, 2015 at 08:06:17PM +0300, Ilya Maximets wrote:
> Since 18167ffebe54e658579835a2e0acf67ec1d14692 fd = 0 instead of -1
> considered as erroneous, because pollfd.fd on Windows does not take
> negative values. So, we should avoid using it.
> 
> Reported-by: Nikita Kalyazin <n.kalyazin at samsung.com>
> Signed-off-by: Ilya Maximets <i.maximets at samsung.com>

I don't think this is a good idea.  Lots of code opens fds, we're not
going to be able to find and fix every bit of code that does it this
way.



More information about the dev mailing list