revents = LTTNG_POLL_GETEV(&events, i);
pollfd = LTTNG_POLL_GETFD(&events, i);
- if (!revents) {
- /* No activity for this FD (poll implementation). */
- continue;
- }
-
/* Thread quit pipe has been closed. Killing thread. */
if (pollfd == quit_pipe_read_fd) {
err = 0;
notifiers = zmalloc(sizeof(*notifiers));
if (!notifiers) {
- goto error;
+ goto error_alloc;
}
notifiers->apps_cmd_notify_pipe_read_fd = apps_cmd_notify_pipe_read_fd;
return true;
error:
cleanup_application_notification_thread(notifiers);
+error_alloc:
return false;
}