MINOR: init: avoid code duplication while setting identify
authorWilliam Dauchy <w.dauchy@criteo.com>
Sun, 17 Nov 2019 14:47:16 +0000 (15:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 17 Nov 2019 15:55:50 +0000 (16:55 +0100)
commitf9af9d7f3c0d7906bf51208e8e9a655ebf52b605
treec2a632aac6797dbcd895838a16262f3352643059
parente039f26ba463023282356096ec1cc0d110613e5c
MINOR: init: avoid code duplication while setting identify

since the introduction of mworker, the setuid/setgid was duplicated in
two places; try to improve that by creating a dedicated function.
this patch does not introduce any functional change.

Signed-off-by: William Dauchy <w.dauchy@criteo.com>
src/haproxy.c