replace __linux__ with HAVE_FF_KQUEUE

Only f-stack redis server need bind cpu,  and forked process will inherit it.
This commit is contained in:
10077240 2018-08-09 07:16:44 +08:00
parent 1404f8b66c
commit da6f05a68c
1 changed files with 1 additions and 1 deletions

View File

@ -2565,7 +2565,7 @@ void resetCpuAffinity(const char* name)
int j = 0, s = 0;
cput_set_t cpuset_frm, cpuset_to;
pthread_t thread;
#ifdef __linux__
#ifdef HAVE_FF_KQUEUE
thread = pthread_self();
CPU_ZERO(&cpuset_frm);
CPU_ZERO(&cpuset_to);