aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-12-07 17:43:40 +0200
committerSergey Poznyakoff <gray@gnu.org>2020-12-07 17:43:40 +0200
commit261b55da70c1ab22c3729b823012ae30963f93d4 (patch)
treeecc5520ff5c25866365cd0394d99d8fbaf9a2819
parent1f528cbd617b49d20bbfc30c16e3dd810849b136 (diff)
downloadpies-261b55da70c1ab22c3729b823012ae30963f93d4.tar.gz
pies-261b55da70c1ab22c3729b823012ae30963f93d4.tar.bz2
Bugfix
* src/syslog.c (pies_syslog_set_dev): Fix the return value.
-rw-r--r--NEWS6
-rw-r--r--src/syslog.c1
2 files changed, 7 insertions, 0 deletions
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;
}

Return to:

Send suggestions and report system problems to the System administrator.