provide previous code as fallback in case sched_getaffinity is broken