pdump: fix error check when creating/canceling thread
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 8 Dec 2017 10:20:13 +0000 (11:20 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Jan 2018 17:49:38 +0000 (18:49 +0100)
commit2969258cb41064d2295ac823f385ad41ef405f15
tree615deb514b2e5a106159c33979fc5a3b631ab13f
parent681721958194f4ea48f95f67a479ef645e66e868
pdump: fix error check when creating/canceling thread

On error, pthread_create() returns a positive number (an errno)
but does not set the errno variable.

Fixes: 278f945402c5 ("pdump: add new library for packet capture")
Cc: stable@dpdk.org
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
lib/librte_pdump/rte_pdump.c