summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar default2023-02-11 06:28:36 +0100
committerGravatar default2023-02-11 06:28:36 +0100
commit28d1da0a81f0d07d5960792eddce37b22dd43da7 (patch)
treed04461b1583863ff6c9fd84202dca50c70d1dc70 /httpd.c
parentImproved Delete button fix. (diff)
downloadsnac2-28d1da0a81f0d07d5960792eddce37b22dd43da7.tar.gz
snac2-28d1da0a81f0d07d5960792eddce37b22dd43da7.tar.xz
snac2-28d1da0a81f0d07d5960792eddce37b22dd43da7.zip
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;
251xs_list *job_fifo = NULL; 251xs_list *job_fifo = NULL;
252 252
253 253
254int job_fifo_ready(void)
255/* returns true if the job fifo is ready */
256{
257 return job_fifo != NULL;
258}
259
260
254void job_post(const xs_val *job) 261void job_post(const xs_val *job)
255/* posts a job for the threads to process it */ 262/* posts a job for the threads to process it */
256{ 263{