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)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 27 Feb 2012 18:55:43 +0000 (13:55 -0500)
commit6bf73bf53464ad309fcf7f02a4dc397d280b81f8
tree57b28a7b699d56b52a4bf9dacaffd8c0f6c41aac
parenta8b0b34167a4d7a46373b463d0744d75f2416bbb
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>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/kernel-consumer/kernel-consumer.c
src/common/ust-consumer/ust-consumer.c
This page took 0.026705 seconds and 5 git commands to generate.