]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit - src/rrd_graph.c
Added missing GLib thread initialization. 787/head
authorSven Panne <svenpanne@gmail.com>
Wed, 24 May 2017 13:18:54 +0000 (15:18 +0200)
committerSven Panne <svenpanne@gmail.com>
Wed, 24 May 2017 13:48:18 +0000 (15:48 +0200)
commitf06463ffd0c7f5e81251235987a748e18c897b1c
tree8bf8f9948f5c22f5b04300b54ea556aff2592a37
parentbfc82d5242855628b826018479df00e0ec4e8360
Added missing GLib thread initialization.

Older GLib versions (< 2.32, e.g. the ones shipped with CentOS 5 and 6,
SLES11, Debian 6) need an explicit initialization to make things
thread-safe, see:

  https://developer.gnome.org/glib/stable/glib-Deprecated-Thread-APIs.html#g-thread-init

RRDtools didn't do that, so you get random crashes in clients and the
rrdcached on those systems.  Now we make sure that GLib is properly
initialized before calling into it.
src/rrd.h
src/rrd_create.c
src/rrd_daemon.c
src/rrd_graph.c
src/rrd_tune.c
src/rrd_update.c
src/rrd_utils.c
src/rrd_xport.c