lib/event: change reactor thread name

Change the reactor name, replacing space with underline.
Since Linux system didn't recommend file name with space.
And when reactor crashed, the core dump file name has space in it.

Change-Id: Iba36ba7903c95db09a9decbc023a01e5e6ab18b4
Signed-off-by: Liang Yan <liang.z.yan@intel.com>
This commit is contained in:
Liang Yan 2017-01-04 17:23:43 +08:00 committed by Jim Harris
parent 58ca5c52ff
commit fb8cbe8c5d

View File

@ -221,7 +221,7 @@ static void set_reactor_thread_name(void)
{
char thread_name[16];
snprintf(thread_name, sizeof(thread_name), "reactor %d",
snprintf(thread_name, sizeof(thread_name), "reactor_%d",
rte_lcore_id());
#if defined(__linux__)