From: Mathieu Desnoyers Date: Tue, 23 Aug 2011 16:08:31 +0000 (-0400) Subject: Make connect error retry wait 5 seconds X-Git-Tag: v1.9.1~279 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=4eef29981ab7715d4307d591510597f9302b5c15;p=lttng-ust.git Make connect error retry wait 5 seconds Until we add the wait scheme. Signed-off-by: Mathieu Desnoyers --- diff --git a/libust/lttng-ust-comm.c b/libust/lttng-ust-comm.c index 1c7b35a3..c97cc37d 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;