From 261b55da70c1ab22c3729b823012ae30963f93d4 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 7 Dec 2020 17:43:40 +0200 Subject: Bugfix * src/syslog.c (pies_syslog_set_dev): Fix the return value. --- NEWS | 6 ++++++ src/syslog.c | 1 + 2 files changed, 7 insertions(+) diff --git a/NEWS b/NEWS index 791cf84..951dd6b 100644 --- a/NEWS +++ b/NEWS @@ -51,6 +51,12 @@ or the IP[:PORT] specification, e.g. dev 172.31.255.252; } +* New control endpoint /alive + +A GET requets to /alive/PROG reflects the current state of the +component PROG: 200 if it is running, 503 if not, and 404 if there's +no such component. + Version 1.4, 2019-07-02 diff --git a/src/syslog.c b/src/syslog.c index 38754a7..a2a6482 100644 --- a/src/syslog.c +++ b/src/syslog.c @@ -472,4 +472,5 @@ pies_syslog_set_dev (char const *dev) pies_log_dev = p; pies_syslog_close (); log_salen = 0; + return 0; } -- cgit v1.2.1