Fix: remove non-async-signal-safe fflush from ERR()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 3 Jun 2022 19:45:31 +0000 (15:45 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 3 Jun 2022 19:45:31 +0000 (15:45 -0400)
commit673f1ff39e7bf8f053836794192d936b79fc2b16
treee2c1079fc09caa2810e6525762441704c773b7bc
parent08932264030d1d5c76e317349e23da099ff5f4a0
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
include/usterr-signal-safe.h
This page took 0.024522 seconds and 4 git commands to generate.