Fix select loop running conditions
authorlurchi <lurchi@strangeplace.net>
Mon, 4 Sep 2017 13:05:26 +0000 (15:05 +0200)
committerlurchi <lurchi@strangeplace.net>
Mon, 4 Sep 2017 13:05:26 +0000 (15:05 +0200)
commit490c41e78c79a18ab683f83299b041564cb4a69b
tree62023b844146738bdb4bc9eea7b0b88a3c890c58
parent0cdad12df4123d4b30603d552f1e3c1effab5015
Fix select loop running conditions

The select loop has to keep running as long as the driver has tasks
available (indicating that there are file descriptors left to wait for)
or the timeout is not FOREVER (indicating that the scheduler has tasks
with timeout left).
src/include/gnunet_scheduler_lib.h
src/util/scheduler.c