eal/bsd: fix fd leak
authorDavid Marchand <david.marchand@6wind.com>
Tue, 26 Aug 2014 14:11:38 +0000 (16:11 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 29 Sep 2014 12:39:09 +0000 (14:39 +0200)
commit8a312224bcdeb45a36685b7c517c12d00683b24d
tree5355f8bf62e69cd7a5ede186942ffcafb17994f1
parent68fa37e021a1c44c6b2a947cefc20eb61c729947
eal/bsd: fix fd leak

From man(4) io:
"The initial implementation simply raised the IOPL of the current thread
when open(2) was called on the device. This behaviour is retained in the
current implementation as legacy support for both i386 and amd64."
    http://www.freebsd.org/cgi/man.cgi?query=io&sektion=4

Nothing prevents from closing it just after.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/bsdapp/eal/eal.c