BUG/MINOR: wdt: do not return an error when the watchdog couldn't be enabled
authorWilly Tarreau <w@1wt.eu>
Wed, 4 Mar 2020 09:46:13 +0000 (10:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Mar 2020 10:00:53 +0000 (12:00 +0200)
commit8244c52565b02bab6d3cd67def1df3aefb1c732d
tree51dbfea5487b032587d74fd3b78d2d0b155c6a2e
parent9d382c3834ed65e0ce5ba7e25f84d070322c8c6d
BUG/MINOR: wdt: do not return an error when the watchdog couldn't be enabled

On operating systems not supporting to create a timer on
POSIX_THREAD_CPUTIME we emit a warning but we return an error so the
process fails to start, which is absurd. Let's return a success once
the warning is emitted instead.

This may be backported to 2.1 and 2.0.

(cherry picked from commit 7259fa2b89d20462f0222ac49d51575d20025e6b)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/wdt.c