diff options
| author | default <nobody@localhost> | 2023-05-08 09:17:00 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2023-05-08 09:17:00 +0200 |
| commit | 6bad2355ef8d7a4013a73888416c8a90e6b6dab0 (patch) | |
| tree | e978e3bde2d4d5adede5aadd1e65d55e21bc1a4f | |
| parent | e2e7bc2d713e469d5af61f58dc85c063bba94e42 (diff) | |
Moved sem_close() further to the end.
| -rw-r--r-- | httpd.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -354,10 +354,6 @@ void job_wait(xs_val **job) /* unlock the mutex */ pthread_mutex_unlock(&job_mutex); } - - if (!*job) { - sem_close(job_sem); - } } @@ -568,5 +564,7 @@ void httpd(void) job_fifo = xs_free(job_fifo); pthread_mutex_unlock(&job_mutex); + sem_close(job_sem); + srv_log(xs_fmt("httpd stop %s:%d", address, port)); } |