Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apphook: fix g_thread_init call order issue with older glibs #2853

Merged
merged 1 commit into from Aug 2, 2019

Conversation

gaborznagy
Copy link
Collaborator

Recently, in app-startup() the g_cond_new() call preceded g_thread_init() call,
which only causes issues with glib versions older than 2.32, where it is not deprecated.

Fixes #2848

lib/apphook.c Show resolved Hide resolved
@kira-syslogng
Copy link
Contributor

Build SUCCESS

@bazsi
Copy link
Collaborator

bazsi commented Aug 2, 2019 via email

@gaborznagy
Copy link
Collaborator Author

@bazsi, thanks for the explanation.
I need to check dependencies, as based on commits main_loop_thread_resource_init() had been put early in app_startup as it had to precede stats_init().

I hope there is some flexibility inside app_startp, so resolving it will be easier.

Recently, in app-startup() the g_cond_new() call preceded g_thread_init() call,
which only causes issues with glib versions older than 2.32.

Signed-off-by: Gabor Nagy <gabor.nagy@balabit.com>
@gaborznagy
Copy link
Collaborator Author

BTW, except RHEL/Centos 6 all major distributions use 2.4X or higher version of glib, e.g. Centos 7 has 2.56.1.

@kira-syslogng
Copy link
Contributor

Build SUCCESS

@MrAnno MrAnno added this to the syslog-ng-3.23 milestone Aug 2, 2019
@MrAnno
Copy link
Collaborator

MrAnno commented Aug 2, 2019

Milestone added.

@MrAnno MrAnno merged commit 3ecbc29 into syslog-ng:master Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GLib-ERROR **: The thread system is not yet initialized.
5 participants