aboutsummaryrefslogtreecommitdiff
path: root/src/inetd.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-12-07 10:53:05 +0200
committerSergey Poznyakoff <gray@gnu.org>2020-12-07 10:53:05 +0200
commit217efcb974309cd373e9ab9e11573de8270e74e0 (patch)
treee291e493565e52c86a57d31d4401dc939f0bf581 /src/inetd.c
parentb3a58380b93512b86fe02749425410d89a5655d4 (diff)
downloadpies-217efcb974309cd373e9ab9e11573de8270e74e0.tar.gz
pies-217efcb974309cd373e9ab9e11573de8270e74e0.tar.bz2
New API endpoint /alive. Improve documentation.
* doc/Makefile.am: Add ctl.texi * doc/ctl.texi: New file. * doc/pies.texi: Add anchors for ctl.texi * src/ctl.c (json_error_reply_create): Set status depending on the HTTP response code. Use "message", instead of "error_message". New endpoint: /alive * src/inetd.c: Use grecs_getline instead of getline. * src/sysvinit.c: Likewise. * src/piesctl.c: Inspect "message", instead of "error_message".
Diffstat (limited to 'src/inetd.c')
-rw-r--r--src/inetd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inetd.c b/src/inetd.c
index 55bc2f1..b7ae0eb 100644
--- a/src/inetd.c
+++ b/src/inetd.c
@@ -96,7 +96,7 @@ inetd_conf_file (const char *file)
}
wsflags = WRDSF_NOVAR | WRDSF_NOCMD | WRDSF_WS | WRDSF_SQUEEZE_DELIMS;
- while (getline (&buf, &size, fp) >= 0)
+ while (grecs_getline (&buf, &size, fp) >= 0)
{
char *p;
struct component *comp;

Return to:

Send suggestions and report system problems to the System administrator.