gstleaks: fix pthread_atfork return value check

pthread_atfork() returns 0 on success.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2195>
This commit is contained in:
Guillaume Desmottes 2022-04-15 17:00:24 +02:00 committed by GStreamer Marge Bot
parent 26c2385fae
commit bf15f1a69f

View file

@ -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);
}