Suspected bug in mq_timedreceive
Sundeep KOKKONDA
sundeep.kokkonda@gmail.com
Thu Jun 30 13:43:17 GMT 2022
Hello,
When will be the 2.36 release? I've to backport the patch to my project.
Will you implement the patch or can I send?
Thanks,
Sundeep K.
On Thu, 30 Jun, 2022, 16:49 Adhemerval Zanella, <
adhemerval.zanella@linaro.org> wrote:
>
>
> > On 30 Jun 2022, at 08:10, Adhemerval Zanella <
> adhemerval.zanella@linaro.org> wrote:
> >
> >
> >
> >> On 30 Jun 2022, at 03:37, sundeep.kokkonda--- via Libc-help <
> libc-help@sourceware.org> wrote:
> >>
> >> That test would be correct if mq_timedreceive returned 0 on success, as
> is
> >> the case for mq_timedsend. However, mq_timedreceive actually returns the
> >> number of bytes read, so the correct test is:
> >>
> >>
> >>
> >> If (ret >= 0 || errno != ENOSYS)
> >>
> >> return ret;
> >
> > Yeah, this is incorrect. I will open a bug an fix it on all affected
> releases.
> > At least for 2.36 the time64 code path is only used if the target date
> can not
> > be fit in 32-bit time_t.
>
> I have opened https://sourceware.org/bugzilla/show_bug.cgi?id=29304
More information about the Libc-alpha
mailing list