From 28d1da0a81f0d07d5960792eddce37b22dd43da7 Mon Sep 17 00:00:00 2001 From: default Date: Sat, 11 Feb 2023 06:28:36 +0100 Subject: Don't fail silently if the job fifo is not ready. --- httpd.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'httpd.c') 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 */ { -- cgit v1.2.3