projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond app listening: use posix-compliant poll flags
[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 1fc875576dd0a4ebd28ef715e2b1313f6db95522..922e81b594817b365fcffa3d8f3f1ed2adfb750f 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-1174,8
+1174,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.025732 seconds
and
4
git commands to generate.