Fix: lttng_rotate_session does not handle socket close
[lttng-tools.git] / src / lib / lttng-ctl / rotate.c
index d9871dc9d3e9f6c651126f917d765321adc116f2..446b332e41354599a18b2967f85a33456b9b0faf 100644 (file)
@@ -233,7 +233,7 @@ int lttng_rotate_session(const char *session_name,
                        sizeof(lsm.session.name));
 
        ret = lttng_ctl_ask_sessiond(&lsm, (void **) &rotate_return);
-       if (ret < 0) {
+       if (ret <= 0) {
                *rotation_handle = NULL;
                goto end;
        }
This page took 0.02327 seconds and 4 git commands to generate.