* Bruno Haible: > Hi Florian, > > Thanks for the patch. > > Florian Weimer wrote: >> +#elif HAVE_SCHED_GETAFFINITY_LIKE_GLIBC \ >> + && defined CPU_ALLOC_SIZE /* glibc >= 2.6 */ >> + { >> + unsigned int alloc_count = 1024; >> + while (1) >> + { >> + cpu_set_t *set = CPU_ALLOC (alloc_count); > > According to the example in the manpage [1], this call can return NULL > in out-of-memory situations. I'm not seeing an error-handling code path > here.
> [1] https://www.kernel.org/doc/man-pages/online/pages/man3/CPU_SET.3.html You are of course right. I've sent an updated patch. Thanks, Florian