- pthread_mutex_lock(&connectivity_lock);
-
- // This first attempt is necessary because the netlink thread
- // might have held the lock while this thread was blocked on
- // the lock acquisition just above. And while the netlink thread
- // had the lock, it could have called pthread_cond_singal, which
- // obviously wouldn't have woken this thread, since this thread
- // was not yet waiting on the condition signal. So we need to
- // loop through the interfaces and check if any have changed
- // status before we wait on the condition signal
- send_interface_status();