]> git.corax.cc Git - toolbox/commit
include/queue: Correctly handle omitted timeout in queue_get_file()
authorMatthias Kruk <m@m10k.eu>
Wed, 30 Jun 2021 22:36:10 +0000 (07:36 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 30 Jun 2021 22:36:10 +0000 (07:36 +0900)
commit63c1dc1380dc461a0cd87fbbdddd57f0ea937cad
treea7702346602c387a1a5efc0ba095b6c659deba12
parent5cf14d8492b53a3cddff0240f5f2c462094219f6
include/queue: Correctly handle omitted timeout in queue_get_file()

The queue_get_file() function does not correctly interpret the timeout
as infinity if the parameter is omitted.
This commit adds a check to queue_get_file() so that the timeout is
set correctly if the parameter is omitted.
include/queue.sh