Re: [dpdk-dev] [PATCH v2] librte_eal: fix wrong assert for arm and ppc

2017-09-22 Thread Jan Viktorin
On Thu, 21 Sep 2017 17:59:53 +0200 Lukasz Majczak wrote: > The assertion of return value from the open() function is done against > 0, while it is a correct value - open() returns -1 in case of an error. > It causes problems while trying to run as a daemon, in which case, this > call to open() wi

[dpdk-dev] [PATCH v2] librte_eal: fix wrong assert for arm and ppc

2017-09-21 Thread Lukasz Majczak
The assertion of return value from the open() function is done against 0, while it is a correct value - open() returns -1 in case of an error. It causes problems while trying to run as a daemon, in which case, this call to open() will return 0 as a valid descriptor. Fixes: b94e5c9406b5 ("eal/arm: a