[glib: 1/2] GThread: Don't g_error() if setting the thread scheduler settings fails
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] GThread: Don't g_error() if setting the thread scheduler settings fails
- Date: Mon, 24 Feb 2020 12:29:59 +0000 (UTC)
commit 965061797d74847d2e2d1237bb7a63328608e28c
Author: Sebastian Dröge <sebastian centricular com>
Date: Thu Feb 20 17:43:49 2020 +0200
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]