Fix: don't use strerror() from ust lock nocheck
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 6 Apr 2022 14:55:11 +0000 (10:55 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 3 Jun 2022 19:44:17 +0000 (15:44 -0400)
commitab64db3571ab2b39a2218f81b3483768f815822a
tree21d234f433392dac9cabaf385f3b4358c03aef4e
parent68d46317f92e6cff6961f4c7bd45cef663487199
Fix: don't use strerror() from ust lock nocheck

ust_lock_nocheck is meant to be async-signal-safe for use from the
fork() override helper (and fork(2) is async-signal-safe).

Remove calls to strerror() from ust lock functions and from the
cancelstate helper because strerror is not async-signal-safe and indeed
allocates memory.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I461f3631a24e71232d987b0a984b4942903bf9ac
src/lib/lttng-ust-common/ust-cancelstate.c
src/lib/lttng-ust/lttng-ust-comm.c
This page took 0.026687 seconds and 4 git commands to generate.