This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3.2] New functions pthread_[sg]etattr_default_np for default thread attributes


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]