[LTP] [PATCH 2/2] mq_timedreceive_5-3: Fix test for timestamp after INT32_MAX

Joerg Vehlow lkml@jv-coder.de
Wed Feb 3 08:48:57 CET 2021


Just FYI:

On 2/3/2021 8:45 AM, Joerg Vehlow wrote:
> From: Joerg Vehlow <joerg.vehlow@aox-tech.de>
>
> The timeout for mq_timedreceive is absolute. Using INT32_MAX
> breaks this test after 2038-01-19.
Funny thing is, that the other bug fixed in the first patch hid this bug.
mq_timedreceive returned with ETIMEDOUT immediately, but wait blocked,
until it was interrupted by the signal -> erno was EINTR and the test 
passed.

Jörg


More information about the ltp mailing list