Otherwise, if this happens (in a parallel thread) after the main loop
found shutdown_pending and checked active_connections>=0, the main
loop could enter a select which would never wake up.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
MORE