summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
630543f)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
/*
* 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;
}