From bf15f1a69f30d5fe473a275dc947939620df7d43 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 15 Apr 2022 17:00:24 +0200 Subject: [PATCH] gstleaks: fix pthread_atfork return value check pthread_atfork() returns 0 on success. Part-of: --- subprojects/gstreamer/plugins/tracers/gstleaks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gstreamer/plugins/tracers/gstleaks.c b/subprojects/gstreamer/plugins/tracers/gstleaks.c index e05bb47..05c694b 100644 --- a/subprojects/gstreamer/plugins/tracers/gstleaks.c +++ b/subprojects/gstreamer/plugins/tracers/gstleaks.c @@ -925,7 +925,7 @@ gst_leaks_tracer_setup_signals (GstLeaksTracer * leaks) * See https://pubs.opengroup.org/onlinepubs/007904975/functions/pthread_atfork.html * for details. */ res = pthread_atfork (atfork_prepare, atfork_parent, atfork_child); - if (!res) { + if (res != 0) { GST_WARNING_OBJECT (leaks, "pthread_atfork() failed (%d)", res); } -- 2.7.4