From 4eef29981ab7715d4307d591510597f9302b5c15 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 23 Aug 2011 12:08:31 -0400 Subject: [PATCH] Make connect error retry wait 5 seconds Until we add the wait scheme. Signed-off-by: Mathieu Desnoyers --- libust/lttng-ust-comm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libust/lttng-ust-comm.c b/libust/lttng-ust-comm.c index 1c7b35a..c97cc37 100644 --- a/libust/lttng-ust-comm.c +++ b/libust/lttng-ust-comm.c @@ -209,6 +209,7 @@ restart: if (ret < 0) { ERR("Error connecting to global apps socket"); pthread_mutex_unlock(<tng_ust_comm_mutex); + sleep(5); goto restart; } else { sock_info->socket = sock = ret; -- 2.34.1