projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: incorrect close of fd 0 for syscall kernel event destroy
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
main.c
diff --git
a/src/bin/lttng-sessiond/main.c
b/src/bin/lttng-sessiond/main.c
index f82f05e00b12d3521649ba6f6d2b9b0003c25c92..3cb970c06e21c62c50b42a2e7466ead067a493f9 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-1166,8
+1166,10
@@
static void *thread_manage_apps(void *data)
/*
* We just need here to monitor the close of the UST
* socket and poll set monitor those by default.
/*
* We just need here to monitor the close of the UST
* socket and poll set monitor those by default.
+ * Listen on POLLIN (even if we never expect any
+ * data) to ensure that hangup wakes us.
*/
*/
- ret = lttng_poll_add(&events, ust_cmd.sock,
0
);
+ ret = lttng_poll_add(&events, ust_cmd.sock,
LPOLLIN
);
if (ret < 0) {
goto error;
}
if (ret < 0) {
goto error;
}
This page took
0.027043 seconds
and
4
git commands to generate.