gmain: abort if monotonic time is unsupported
authorRyan Lortie <desrt@desrt.ca>
Fri, 21 Feb 2014 15:20:11 +0000 (10:20 -0500)
committerRyan Lortie <desrt@desrt.ca>
Fri, 21 Feb 2014 21:42:21 +0000 (16:42 -0500)
commit03a43c290e470c67015d01237c5d81ea81a7b129
tree26176095bfb8018d6893fe66bb31e56cd289ab3a
parent6fcaa7aa96fc4b274a4358f2cec3a4075568d343
gmain: abort if monotonic time is unsupported

We now depend on CLOCK_MONOTONIC, but it's possible that people may
attempt to run GLib on systems where it isn't supported at runtime.

Check the return value of clock_gettime() and abort() if it fails in
order to save these people from wasting time on debugging a tricky
issue.

https://bugzilla.gnome.org/show_bug.cgi?id=670144
glib/gmain.c