projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cygwin: Fix racy read to detect applications sockets close
[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 7225495547b2276d0df20dfaac64f415fb434b54..236341d2737fc21e06d74509c4e13a7d945455d2 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-1293,9
+1293,10
@@
static void *thread_manage_apps(void *data)
char dummy;
do {
char dummy;
do {
- readlen = re
ad(pollfd, &dummy, 1
);
+ readlen = re
cv(pollfd, &dummy, 1, MSG_PEEK
);
} while (readlen == -1 && errno == EINTR);
} while (readlen == -1 && errno == EINTR);
+ /* Peer has performed an orderly shutdown */
if (readlen == 0) {
/* Removing from the poll set */
ret = lttng_poll_del(&events, pollfd);
if (readlen == 0) {
/* Removing from the poll set */
ret = lttng_poll_del(&events, pollfd);
This page took
0.023549 seconds
and
4
git commands to generate.