BUG/MEDIUM: misplaced exit and wrong exit code
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 7 Jun 2017 13:04:47 +0000 (15:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Jun 2017 18:41:57 +0000 (20:41 +0200)
commit1499b9b7efedf6162d3e4744993558c28bdca77c
treeac811fa99faa0847cadb37533c7f60d25d12c427
parentcc9b94ac943caaa0292ca047a63f64a382d85d80
BUG/MEDIUM: misplaced exit and wrong exit code

Commit cb11fd2 ("MEDIUM: mworker: wait mode on reload failure")
introduced a regression, when HAProxy is used in daemon mode, it exits 1
after forking its children.

HAProxy should exit(0), the exit(EXIT_FAILURE) was expected to be use
when the master fail in master-worker mode.

Thanks to Emmanuel Hocdet for reporting this bug. No backport needed.
src/haproxy.c