Skip to content

Conversation

@Fuzzbawls
Copy link
Collaborator

Coming straight from bitcoin#12923.

Fixes a bug introduced in #2212 for some POSIX linux systems (observed on CentOS 7 currently)

Original upstream text:

Nowhere in the man page of pthread_setschedparam it is mentioned that 0 is a valid value. The example uses pthread_self(), so should we.

laanwj added 2 commits March 12, 2021 23:05
Nowhere in the man page of `pthread_setschedparam` it is mentioned that
`0` is a valid value. The example uses `pthread_self()`, so should we.

(noticed by Anthony Towns)
Although no compiler appears to complain about it, these are
not valid for c++11.
(http://en.cppreference.com/w/cpp/language/aggregate_initialization says they're c++20)

The structure is defined as:

   struct sched_param {
       int sched_priority;
   };

So passing 0 for the first field has the same effect.
@Fuzzbawls Fuzzbawls added Bug Linux/Unix Issues/problems specifically related to Linux/Unix Util / log / libs labels Mar 13, 2021
@Fuzzbawls Fuzzbawls added this to the 5.1.0 milestone Mar 13, 2021
@Fuzzbawls Fuzzbawls self-assigned this Mar 13, 2021
@Fuzzbawls Fuzzbawls added the Needs Backport Placeholder tag for anything needing a backport to prior version branches label Mar 13, 2021
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

utACK 48b3bc4

Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

utACK 48b3bc4

@furszy furszy merged commit a3e1290 into PIVX-Project:master Mar 13, 2021
@furszy furszy removed the Needs Backport Placeholder tag for anything needing a backport to prior version branches label Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Linux/Unix Issues/problems specifically related to Linux/Unix Util / log / libs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants