projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sessiond: implement consumer clear channel
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
notify-apps.c
diff --git
a/src/bin/lttng-sessiond/notify-apps.c
b/src/bin/lttng-sessiond/notify-apps.c
index fee1843459e011d8ded0908c07fd317026d942b0..17f3cd0c8254f52cd0e57388d8dfe67105723f3e 100644
(file)
--- a/
src/bin/lttng-sessiond/notify-apps.c
+++ b/
src/bin/lttng-sessiond/notify-apps.c
@@
-109,11
+109,6
@@
restart:
revents = LTTNG_POLL_GETEV(&events, i);
pollfd = LTTNG_POLL_GETFD(&events, i);
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;
/* Thread quit pipe has been closed. Killing thread. */
if (pollfd == quit_pipe_read_fd) {
err = 0;
@@
-230,7
+225,7
@@
bool launch_application_notification_thread(int apps_cmd_notify_pipe_read_fd)
notifiers = zmalloc(sizeof(*notifiers));
if (!notifiers) {
notifiers = zmalloc(sizeof(*notifiers));
if (!notifiers) {
- goto error;
+ goto error
_alloc
;
}
notifiers->apps_cmd_notify_pipe_read_fd = apps_cmd_notify_pipe_read_fd;
}
notifiers->apps_cmd_notify_pipe_read_fd = apps_cmd_notify_pipe_read_fd;
@@
-252,5
+247,6
@@
bool launch_application_notification_thread(int apps_cmd_notify_pipe_read_fd)
return true;
error:
cleanup_application_notification_thread(notifiers);
return true;
error:
cleanup_application_notification_thread(notifiers);
+error_alloc:
return false;
}
return false;
}
This page took
0.026115 seconds
and
4
git commands to generate.