From: David Goulet Date: Wed, 24 Oct 2012 16:40:59 +0000 (-0400) Subject: Fix: Delete stream on write error in consumer X-Git-Tag: v2.1.0-rc6~26 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=ab1027f48fa7e2dd29b3c85548ec42f26d06be25;hp=ab1027f48fa7e2dd29b3c85548ec42f26d06be25;p=lttng-tools.git Fix: Delete stream on write error in consumer Whenever a write() error occured, both on network or local trace file, the consumer thread just died considering the error a fatal one. This commit fixes that by simply deleting the stream, removing it from the poll set of the thread and freeing it. Furthermore, on a write() error, a SIGPIPE is usually raised if the FD is invalid. The consumer is catching this signal but was initiating a should exit action thus ultimately cleaning all threads. We now still catch SIGPIPE but don't set the should quit flag so normal cleanup can be done by the threads. Signed-off-by: David Goulet ---