commit | 387bd4f69f675d7e35895ce35d04a8270eec45b6 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Nov 10 19:08:14 2017 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Nov 10 19:08:14 2017 +0100 |
tree | bb2927ca70c6d83f0d5994edff5a456866c7ccb6 | |
parent | 9a398beac321fdda9f6cf0cb7069960d1a29cfd6 [diff] |
CLEANUP: global: introduce variable pid_bit to avoid shifts with relative_pid At a number of places, bitmasks are used for process affinity and to map listeners to processes. Every time 1UL<<(relative_pid-1) is used. Let's create a "pid_bit" variable corresponding to this value to clean this up.