mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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:
parent
26c2385fae
commit
bf15f1a69f
1 changed files with 1 additions and 1 deletions
|
@ -925,7 +925,7 @@ gst_leaks_tracer_setup_signals (GstLeaksTracer * leaks)
|
||||||
* See https://pubs.opengroup.org/onlinepubs/007904975/functions/pthread_atfork.html
|
* See https://pubs.opengroup.org/onlinepubs/007904975/functions/pthread_atfork.html
|
||||||
* for details. */
|
* for details. */
|
||||||
res = pthread_atfork (atfork_prepare, atfork_parent, atfork_child);
|
res = pthread_atfork (atfork_prepare, atfork_parent, atfork_child);
|
||||||
if (!res) {
|
if (res != 0) {
|
||||||
GST_WARNING_OBJECT (leaks, "pthread_atfork() failed (%d)", res);
|
GST_WARNING_OBJECT (leaks, "pthread_atfork() failed (%d)", res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue