Closed ericstoekl closed 5 years ago
I think this will work and have a similar patch on my laptop from when I raised the issue. Let's re-evaluate which modes are needed in the of-watchdog and what else is different in this implementation.
/close: inactive
Signed-off-by: Eric Stoekl ems5311@gmail.com
Description
This PR is to bubble up non-zero exit code from the fprocess that is run by the
of-watchdog
as a 500 ISE response to the client which invokes the watchdog.Motivation and Context
How Has This Been Tested?
Start the watchdog server with
port=8081 mode=serializing fprocess="stat x" ./of-watchdog
Before the update, when you
curl
the endpoint it will return 200 OK despite thefprocess
command failing.After update, it will return
500
if thefprocess
command return non-zero:When running with a working fprocess (use
pwd
for thefprocess
variable for example) I get a200
response:You will see the same results with the
streaming
(fork) mode.Types of changes
Checklist:
git commit -s