From: Mathieu Desnoyers Date: Fri, 24 Feb 2012 19:41:49 +0000 (-0500) Subject: Fix: lttng UST and kernel consumer: fix ret vs errno mixup X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=6bf73bf53464ad309fcf7f02a4dc397d280b81f8;hp=6bf73bf53464ad309fcf7f02a4dc397d280b81f8;p=lttng-tools.git Fix: lttng UST and kernel consumer: fix ret vs errno mixup - errno should be set to -ret (not the opposite!) The main effect is that the perror errors were meaningless. - errno should always be compared with positive values. This was also causing consumerd error handling mistakes. Signed-off-by: Mathieu Desnoyers Signed-off-by: David Goulet ---