Make connect error retry wait 5 seconds
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Aug 2011 16:08:31 +0000 (12:08 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Aug 2011 16:08:31 +0000 (12:08 -0400)
Until we add the wait scheme.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libust/lttng-ust-comm.c

index 1c7b35a36125fa952824898aa11b7ba21c55b794..c97cc37d1e6283210a81604ccafc1bcba5b35269 100644 (file)
@@ -209,6 +209,7 @@ restart:
        if (ret < 0) {
                ERR("Error connecting to global apps socket");
                pthread_mutex_unlock(&lttng_ust_comm_mutex);
+               sleep(5);
                goto restart;
        } else {
                sock_info->socket = sock = ret;
This page took 0.025693 seconds and 4 git commands to generate.