X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Fust%2Fwait.h;fp=include%2Fust%2Fwait.h;h=21ced509915932086570d3329073b6d7d764c0fc;hb=9dcb02efd18948134deb8469a39478f250033269;hp=e92d52856c603144e105da87dab6533bf47bee04;hpb=48279e22a39cde0cf97b9ed0077e850309112637;p=lttng-ust.git diff --git a/include/ust/wait.h b/include/ust/wait.h index e92d5285..21ced509 100644 --- a/include/ust/wait.h +++ b/include/ust/wait.h @@ -38,7 +38,7 @@ } \ __pollret = poll(NULL, 0, 10); /* wait 10ms */ \ if (__pollret < 0) { \ - __ret = __pollret; \ + __ret = -errno; \ break; \ } \ __timeout -= 10; \