mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 14:17:30 -04:00
BUG/MINOR: mworker: disable busy polling in the master process
When enabling busy polling, we don't want the master to use it, or it wastes a dedicated processor to this! Must be backported to 1.9.
This commit is contained in:
parent
769a92d86d
commit
d83b6c1ab3
1 changed files with 2 additions and 0 deletions
|
|
@ -650,6 +650,8 @@ static void mworker_loop()
|
|||
if (global.tune.options & GTUNE_USE_SYSTEMD)
|
||||
sd_notifyf(0, "READY=1\nMAINPID=%lu", (unsigned long)getpid());
|
||||
#endif
|
||||
/* Busy polling makes no sense in the master :-) */
|
||||
global.tune.options &= ~GTUNE_BUSY_POLLING;
|
||||
|
||||
master = 1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue