Skip to content

Backport !3398 “Avoid having g_futex_simple() inadvertently modify errno” to glib-2-76

If both __NR_futex and __NR_futex_time64 are defined, g_futex_simple() will first call futex_time64(). If that fails with ENOSYS, then futex_time() is called instead. However, errno was not saved and restored in this case, which would result in g_futex_simple() returning with errno set to ENOSYS, even if futex_time() succeeded.


Trivial backport of !3398 (merged) to glib-2-76.

Merge request reports