Merge branch 'sched_setattr-no-gerror' into 'master'

GThread: Don't g_error() if setting the thread scheduler settings fails

Closes #2039

See merge request GNOME/glib!1374
This commit is contained in:
Sebastian Dröge 2020-02-24 12:29:26 +00:00
commit ff44c490d4

View File

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