Change-Id: I13168087ef460e74c203ab0f0311b91f6f2421f5
}
// FIXME: can the sleep be interrupted via signals etc?
- // also FIXME: can `needed_timeout` be -1 at this point?
+ if (needed_timeout > 0)
+ usleep(needed_timeout * USEC_PER_MSEC);
- usleep(needed_timeout * USEC_PER_MSEC);
for (int i = 0; i < state->fd_count; ++i) {
if (!state->enabled[i])
continue;
const int len = aggr_count * 32;
__attribute__((cleanup(free_ptr))) char *buf = malloc(len);
+ if (!buf)
+ return;
+
int pos = 0;
for (int i = 0; i < aggr_count; ++i)
if (aggr_infos[i].count >= 0) {