linux: Fix mq_timereceive check for 32 bit fallback code (BZ 29304)
commit71d87d85bf54f6522813aec97c19bdd24997341e
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 30 Jun 2022 12:08:31 +0000 (30 09:08 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 30 Jun 2022 12:12:59 +0000 (30 09:12 -0300)
tree1922962b0d2543b770d09975cc1a1a4d61723408
parent96ac447d915ea5ecef3f9168cc13f4e731349a3b
linux: Fix mq_timereceive check for 32 bit fallback code (BZ 29304)

On  success,  mq_receive() and mq_timedreceive() return the number of
bytes in the received message, so it requires to check if the value
is larger than 0.

Checked on i686-linux-gnu.
sysdeps/unix/sysv/linux/mq_timedreceive.c