]> git.proxmox.com Git - mirror_frr.git/commit
lib: tighten up exit semantics for thread_fetch()
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 14 Jun 2017 17:06:10 +0000 (17:06 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 16 Jun 2017 19:56:58 +0000 (19:56 +0000)
commit7feb7d7e6581213ae3eb6010c3036478f9e90158
treea7ab4d712b5cd6da6bc7c824d8915f97140096f5
parent8797240ea4de5163f8633c1c561edbfd8ecf1c2a
lib: tighten up exit semantics for thread_fetch()

* Account for the pipe poker in poll() by explicitly returning NULL when
  we have no events, timers or file descriptors to work with
* Add a comment explaining exactly what we are doing and why

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/thread.c