diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-02-21 15:01:41 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-02-21 15:01:41 +0400 |
commit | 13d35d6e24df40bd6764b0bb9a9bc1f554508fab (patch) | |
tree | 348336de95d1a6cac10f858aaa5efcff419dd62a /src/main.c | |
parent | 5218877e6a4daf614fc765927af8b0cda02bc95f (diff) | |
download | rspamd-13d35d6e24df40bd6764b0bb9a9bc1f554508fab.tar.gz rspamd-13d35d6e24df40bd6764b0bb9a9bc1f554508fab.zip |
Another workaround for old glib.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index b55186ce3..caced2b17 100644 --- a/src/main.c +++ b/src/main.c @@ -386,7 +386,10 @@ fork_worker (struct rspamd_main *rspamd, struct worker_conf *cf) close_log (rspamd->logger); open_log (rspamd->logger); #if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION <= 30)) - g_thread_init (NULL); + /* Ugly hack for old glib */ + if (!g_thread_get_initialized ()) { + g_thread_init (NULL); + } #endif msg_info ("starting %s process %P", cf->worker->name, getpid ()); cf->worker->worker_start_func (cur); |