projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix health check: signal parent before exit testpoint
[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 d6bca47d59db9bdc8b116a1f2df3dd6493e4979f..c05be0a91533797a088670af6b6ec52c00637154 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-3693,10
+3693,6
@@
static void *thread_manage_clients(void *data)
health_register(health_sessiond, HEALTH_SESSIOND_TYPE_CMD);
health_register(health_sessiond, HEALTH_SESSIOND_TYPE_CMD);
- if (testpoint(sessiond_thread_manage_clients)) {
- goto error_testpoint;
- }
-
health_code_update();
ret = lttcomm_listen_unix_sock(client_sock);
health_code_update();
ret = lttcomm_listen_unix_sock(client_sock);
@@
-3732,6
+3728,11
@@
static void *thread_manage_clients(void *data)
kill(child_ppid, SIGUSR1);
}
kill(child_ppid, SIGUSR1);
}
+ /* This testpoint is after we signal readiness to the parent. */
+ if (testpoint(sessiond_thread_manage_clients)) {
+ goto error;
+ }
+
if (testpoint(sessiond_thread_manage_clients_before_loop)) {
goto error;
}
if (testpoint(sessiond_thread_manage_clients_before_loop)) {
goto error;
}
@@
-3907,7
+3908,6
@@
error:
error_listen:
error_create_poll:
error_listen:
error_create_poll:
-error_testpoint:
unlink(client_unix_sock_path);
if (client_sock >= 0) {
ret = close(client_sock);
unlink(client_unix_sock_path);
if (client_sock >= 0) {
ret = close(client_sock);
This page took
0.022987 seconds
and
4
git commands to generate.