Skip to content

Conversation

@dereckson
Copy link
Contributor

The fix introduced in 1bd7a3b will only compile with glibc, as it uses additions to pthreads specific to the GNU C Library.

This fix allows in certain conditions to solve a threads issue when the livestatus broker restarts.

As such, it seems currently best to keep it for Linux systems, and skip it elsewhere to allow livestatus to work everywhere else.

The fix introduced in 1bd7a3b
will only compile with glibc, as it uses additions to pthreads
specific to the GNU C Library.

This fix allows in certain conditions to solve a threads issue
when the livestatus broker restarts.

As such, it seems currently best to keep it for Linux systems,
and skip it elsewhere to allow livestatus to work everywhere else.
#ifdef __GLIBC__
pthread_t *thr;
#else
pthread_t thr;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i might be wrong, but this seems to be unnecessary and confusing.

@sni
Copy link
Contributor

sni commented Jan 23, 2024

I've got a question :-)
And also i don't have access to the internal jira ticket nor do i know the reason for the change. So no idea if this was a common issue which was solved hereby.

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.

2 participants