BUG/MEDIUM: stats: stats bind-process doesn't propagate the process mask correctly
authorCyril Bonté <cyril.bonte@free.fr>
Tue, 23 Feb 2016 23:14:54 +0000 (00:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Feb 2016 06:38:37 +0000 (07:38 +0100)
commit0618195a114098c93e2712b5507dc9a3eeae8e8b
tree936bf533aa5251d05b62c552e819c97cf9ab34a6
parent9d5fb6d6a01331ac3fca3ff16b832697abe6e335
BUG/MEDIUM: stats: stats bind-process doesn't propagate the process mask correctly

With nbproc > 1, it is possible to specify on which process the stats socket
will be bound using "stats bind-process", but the behaviour was not correct,
ignoring the value in some configurations.

Example :
global
  nbproc 4
  stats bind-process 1
  stats socket /var/run/haproxy.sock

With such a configuration, all the processes will listen on the stats socket.
As a workaround, it is also possible to declare a "process" keyword on
the "stats stocket" line.

The patch must be applied to 1.7, 1.6 and 1.5
src/cfgparse.c