From 965061797d74847d2e2d1237bb7a63328608e28c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 20 Feb 2020 17:43:49 +0200 Subject: [PATCH] GThread: Don't g_error() if setting the thread scheduler settings fails Instead only do a g_critical(). This is something that has to be fixed one way or another, but a g_critical() is less disruptive and makes sure that code that worked in previous GLib versions still works as bad as before. Fixes https://gitlab.gnome.org/GNOME/glib/issues/2039 --- glib/gthread-posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gthread-posix.c b/glib/gthread-posix.c index 271bb5dbc..29bc81a0f 100644 --- a/glib/gthread-posix.c +++ b/glib/gthread-posix.c @@ -1248,7 +1248,7 @@ linux_pthread_proxy (void *data) res = syscall (SYS_sched_setattr, tid, thread->scheduler_settings->attr, flags); errsv = errno; if (res == -1) - g_error ("Failed to set scheduler settings: %s", g_strerror (errsv)); + g_critical ("Failed to set scheduler settings: %s", g_strerror (errsv)); } return thread->proxy (data);