]> git.corax.cc Git - toolbox/commit
include/queue: Prevent queue_put_unique() from adding duplicates
authorMatthias Kruk <m@m10k.eu>
Mon, 28 Jun 2021 23:28:23 +0000 (08:28 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 28 Jun 2021 23:28:23 +0000 (08:28 +0900)
commitd1631a046ee02bc54ed4d41869220879badef365
tree708172d6130642a6ede08f9367a6ea2e3df566d1
parent4c0952adc724181c0e041cdd2a4fc3ff4eed9356
include/queue: Prevent queue_put_unique() from adding duplicates

There are several issues in _queue_contains(), causing the
queue_put_unique() function to hang (waiting for input from stdin) or
add duplicate items to the queue.
This commit addresses these issues so that queue_put_unique() does not
hang or add duplicate items.
include/queue.sh