From: Mathieu Desnoyers Date: Wed, 18 May 2016 18:04:10 +0000 (-0400) Subject: Fix: bad file descriptors on close after rotation error X-Git-Tag: v2.9.0-rc1~178 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=b5b0c181b9f47edd4be6fd1f70835f232c0d56fd;hp=b5b0c181b9f47edd4be6fd1f70835f232c0d56fd;ds=sidebyside Fix: bad file descriptors on close after rotation error Ensure we don't try to close output stream file descriptors twice when a trace file rotation error occurs (once at tracefile rotation, once when closing the stream). Set the fd value to -1 after the first close to ensure we don't try to close it again. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---