Fix: sessiond app listening: use posix-compliant poll flags
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index f82f05e00b12d3521649ba6f6d2b9b0003c25c92..3cb970c06e21c62c50b42a2e7466ead067a493f9 100644 (file)
@@ -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.
+                                                * 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;
                                                }
This page took 0.023397 seconds and 4 git commands to generate.