Fix: bad file descriptors on close after rotation error
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 18 May 2016 18:04:10 +0000 (14:04 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 18 May 2016 20:53:23 +0000 (16:53 -0400)
commitb5b0c181b9f47edd4be6fd1f70835f232c0d56fd
tree234034de00fb28fa44e8aca6d6d13caa2e4dd29a
parente9c45a264894ea689fd9f018a0e83571f4ce095d
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 <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/utils.c
This page took 0.025006 seconds and 4 git commands to generate.