replace __linux__ with HAVE_FF_KQUEUE

Only f-stack redis server need bind cpu,  and forked process will inherit it.
dev
10077240 2018-08-09 07:16:44 +08:00
parent 9518765b1f
commit b43e0dde49
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);