[dpdk-stable] [dpdk-dev] [PATCH 1/2] eal/thread: fix return codes for rte_thread_setname()
Burakov, Anatoly
anatoly.burakov at intel.com
Mon Jun 18 12:00:55 CEST 2018
On 08-Jun-18 1:37 PM, Dariusz Stojaczyk wrote:
> The doc says this function returns negative errno
> on error, but it currently returns either -1 or
> positive errno.
>
> It was incorrectly assumed that pthread_setname_np()
> returns negative error numbers. It always returns
> positive ones, so this patch negates its return value
> before returning.
>
> While here, also ignore rte_thread_setname() failure
> in rte_ctrl_thread_create() and print a debug message
> instead.
>
> Fixes: 3901ed99c2f8 ("eal: fix thread naming on FreeBSD")
> Cc: thomas.monjalon at 6wind.com
> Cc: stable at dpdk.org
>
> Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk at intel.com>
> ---
For patch contents,
Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
However, maybe this should be split in two patches.
--
Thanks,
Anatoly
More information about the stable
mailing list