diff options
| author | 2023-02-11 06:28:36 +0100 | |
|---|---|---|
| committer | 2023-02-11 06:28:36 +0100 | |
| commit | 28d1da0a81f0d07d5960792eddce37b22dd43da7 (patch) | |
| tree | d04461b1583863ff6c9fd84202dca50c70d1dc70 /httpd.c | |
| parent | Improved Delete button fix. (diff) | |
| download | snac2-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.c | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -251,6 +251,13 @@ static sem_t job_sem; | |||
| 251 | xs_list *job_fifo = NULL; | 251 | xs_list *job_fifo = NULL; |
| 252 | 252 | ||
| 253 | 253 | ||
| 254 | int job_fifo_ready(void) | ||
| 255 | /* returns true if the job fifo is ready */ | ||
| 256 | { | ||
| 257 | return job_fifo != NULL; | ||
| 258 | } | ||
| 259 | |||
| 260 | |||
| 254 | void job_post(const xs_val *job) | 261 | void 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 | { |