Fix: lttng UST and kernel consumer: fix ret vs errno mixup
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 24 Feb 2012 19:41:49 +0000 (14:41 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 24 Feb 2012 19:41:49 +0000 (14:41 -0500)
commit87dc6a9c2c936cf4386043083412c695a914cb36
tree9cba226cf2afdb2afeaaad281d33aae78a35a9f4
parent88f2b785b937a5c2af4e21e925b6242ea6c8362b
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 <mathieu.desnoyers@efficios.com>
src/common/kernel-consumer/kernel-consumer.c
src/common/ust-consumer/ust-consumer.c
This page took 0.033727 seconds and 4 git commands to generate.