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:
Willy Tarreau 2019-04-18 11:31:36 +02:00
parent 769a92d86d
commit d83b6c1ab3

View File

@ -650,6 +650,8 @@ static void mworker_loop()
if (global.tune.options & GTUNE_USE_SYSTEMD) if (global.tune.options & GTUNE_USE_SYSTEMD)
sd_notifyf(0, "READY=1\nMAINPID=%lu", (unsigned long)getpid()); sd_notifyf(0, "READY=1\nMAINPID=%lu", (unsigned long)getpid());
#endif #endif
/* Busy polling makes no sense in the master :-) */
global.tune.options &= ~GTUNE_BUSY_POLLING;
master = 1; master = 1;