Fix metadata wait handling
[lttng-ust.git] / include / ust / wait.h
index e92d52856c603144e105da87dab6533bf47bee04..21ced509915932086570d3329073b6d7d764c0fc 100644 (file)
@@ -38,7 +38,7 @@
                        }                                       \
                        __pollret = poll(NULL, 0, 10);  /* wait 10ms */ \
                        if (__pollret < 0) {                    \
-                               __ret = __pollret;              \
+                               __ret = -errno;                 \
                                break;                          \
                        }                                       \
                        __timeout -= 10;                        \
This page took 0.028057 seconds and 4 git commands to generate.