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:46:10 +0000 (15:46 -0400)
commit94e6e686bf0a1a62de6d5d31fee783506b53ac1f
tree053c77672e4daa7ae7c23c647fbf2531e0a1ec4a
parent673f1ff39e7bf8f053836794192d936b79fc2b16
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
liblttng-ust-comm/ust-cancelstate.c
liblttng-ust/lttng-ust-comm.c
This page took 0.025427 seconds and 4 git commands to generate.