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:24 +0000 (15:44 -0400)
commitedea8013ea262aa31b40368a09edce121c845088
treef9f5247a2b7ea40a3f8cff5447ecd79f375be204
parente6242474700849d4e40de7ce5e55db3eeead1607
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.024886 seconds and 4 git commands to generate.