projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move accept sequence
[lttng-tools.git]
/
kconsumerd
/
kconsumerd.c
diff --git
a/kconsumerd/kconsumerd.c
b/kconsumerd/kconsumerd.c
index 315095ee3c102794817176262d096e1b21089b96..96051caafdfeba7dd09b4029c16404d28769cf08 100644
(file)
--- a/
kconsumerd/kconsumerd.c
+++ b/
kconsumerd/kconsumerd.c
@@
-511,13
+511,13
@@
static void *thread_receive_fds(void *data)
goto error;
}
goto error;
}
+ /* Blocking call, waiting for transmission */
+ sock = lttcomm_accept_unix_sock(client_socket);
+ if (sock <= 0) {
+ WARN("On accept, retrying");
+ goto error;
+ }
while (1) {
while (1) {
- /* Blocking call, waiting for transmission */
- sock = lttcomm_accept_unix_sock(client_socket);
- if (sock <= 0) {
- WARN("On accept, retrying");
- continue;
- }
/* We first get the number of fd we are about to receive */
ret = lttcomm_recv_unix_sock(sock, &tmp,
/* We first get the number of fd we are about to receive */
ret = lttcomm_recv_unix_sock(sock, &tmp,
This page took
0.022756 seconds
and
4
git commands to generate.