From: Mathieu Desnoyers Date: Thu, 1 Mar 2012 04:34:11 +0000 (-0500) Subject: Fix: sessiond app listening: use posix-compliant poll flags X-Git-Tag: v2.0.0-rc3~21 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a9ade9664f81a422c669f7a043c10479bb82ff42;p=lttng-tools.git Fix: sessiond app listening: use posix-compliant poll flags Signed-off-by: Mathieu Desnoyers --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 1fc875576..922e81b59 100644 --- 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. + * 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; }