Fix: remove non-async-signal-safe fflush from ERR()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 6 Apr 2022 14:17:15 +0000 (10:17 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 3 Jun 2022 19:44:17 +0000 (15:44 -0400)
commit68d46317f92e6cff6961f4c7bd45cef663487199
tree07de8b370ac30c92b37e1415035840f81fad2a32
parent62eb004ccbd4b3d759bda96f7a0c6d072b23ffa9
Fix: remove non-async-signal-safe fflush from ERR()

Commit ff1fedb9f2e8 ("usterr: make error reporting functions signal safe")
changed the logging printout mechanism to use patient_write() to a file
descriptor to ensure signal-safety of the ERR() logging mechanism.
However, the fflush(stderr) was left in place, although it was useless.
Unfortunately, fflush() is not async-signal-safe.

Fix this by removing this fflush() call.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I13754acd914c4a9f71014a1e332c3fb25197a669
src/common/logging.h
This page took 0.024791 seconds and 4 git commands to generate.