summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-02-11 06:28:36 +0100
committerdefault <nobody@localhost>2023-02-11 06:28:36 +0100
commit28d1da0a81f0d07d5960792eddce37b22dd43da7 (patch)
treed04461b1583863ff6c9fd84202dca50c70d1dc70 /httpd.c
parentf325b567e3c7818de149fea26c7f74ee547a679c (diff)
Don't fail silently if the job fifo is not ready.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/httpd.c b/httpd.c
index 1208e84..b952edc 100644
--- a/httpd.c
+++ b/httpd.c
@@ -251,6 +251,13 @@ static sem_t job_sem;
xs_list *job_fifo = NULL;
+int job_fifo_ready(void)
+/* returns true if the job fifo is ready */
+{
+ return job_fifo != NULL;
+}
+
+
void job_post(const xs_val *job)
/* posts a job for the threads to process it */
{