Skip to content
Commit 8c28718b authored by Gregory Nutt's avatar Gregory Nutt
Browse files

alling mq_timedreceived with immediate timeout was getting stuck and not


timeout. Immediate timeout is achieved by setting absolute timeout value to
past time, for example abstime={ .tv_sec=0, .tv_nsec=0 }. However absolute
time was converted to relative time using unsigned integer arithmetic and
resulted large ticks count by clock_abstime2ticks, instead of expected negative
ticks value.

Patch corrects clock_abstime2ticks to return negative ticks, if absolute time
is in the past.

Signed-off-by: default avatarJussi Kivilinna <jussi.kivilinna@haltian.com>
parent 8b8dd03e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment