]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: startup: haproxy -s cause 100% cpu
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 2 Sep 2020 14:12:23 +0000 (16:12 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 2 Sep 2020 14:17:14 +0000 (16:17 +0200)
commit398da62c38014c76006571e0caa52a3799f41815
tree371e975fa9e81f5d52151d2d39c79ecb878f109f
parente91bff213485e495a12f7576e39f423b3fe10244
BUG/MINOR: startup: haproxy -s cause 100% cpu

It was reported in bug #837 that haproxy -s causes a 100% CPU.

However this option does not exist and haproxy must exit with the
usage message.

The parser was not handling the case where -s is not followed by 't' or
'f' which are the only two valid cases.

This bug was introduced by df6c5a ("BUG/MEDIUM: mworker: fix the copy of
options in copy_argv()") which was backported as far as 1.8.

This fix must be backported as far as 1.8.
src/haproxy.c