summaryrefslogtreecommitdiff
path: root/lib/workqueue.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-06-05 20:18:48 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-06-06 14:23:42 +0000
commit82fc5591f440ee9810ce2c5d90d41a9f419062c8 (patch)
tree9befe013dd5f46aed52d62c491fe425b51b6d649 /lib/workqueue.c
parent8899960086f249fe07458c99ad8237f794f19dc8 (diff)
lib: allow infinite sleep in poll()
If fd_poll() is called with no file descriptors, an incorrect check in the function prelude causes it to return instantly; for a thread that wishes to poll but has no file descriptors, this results in busy waiting. Desired behavior is to block. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/workqueue.c')
0 files changed, 0 insertions, 0 deletions