[PATCH v3.2] New functions pthread_[sg]etattr_default_np for default thread attributes
Richard Henderson
rth@twiddle.net
Thu Jun 13 16:44:00 GMT 2013
On 06/12/2013 08:55 PM, Siddhesh Poyarekar wrote:
> + /* Free the cpuset if the input is 0. Otherwise copy in the cpuset
> + contents. */
> + if (attrs.cpuset == NULL || attrs.cpusetsize == 0)
> + {
> + free (__default_pthread_attr.cpuset);
> + __default_pthread_attr.cpuset = NULL;
> + }
Surely both attrs.cpuset and attrs.cpusetsize need to be cleared here too,
since we can arrive in this block with either of them non-zero.
r~
More information about the Libc-alpha
mailing list