diff options
| author | 2022-12-10 17:15:26 +0100 | |
|---|---|---|
| committer | 2022-12-10 17:15:26 +0100 | |
| commit | 14a516b542ead09b03e2f1ebb4eb661eacb1a8f4 (patch) | |
| tree | d16afa27a16dc28d4d50712f6127abcfe9548972 /httpd.c | |
| parent | Bumped development version. (diff) | |
| download | snac2-14a516b542ead09b03e2f1ebb4eb661eacb1a8f4.tar.gz snac2-14a516b542ead09b03e2f1ebb4eb661eacb1a8f4.tar.xz snac2-14a516b542ead09b03e2f1ebb4eb661eacb1a8f4.zip | |
Call pthread_detach() and spawning the purge.
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -286,6 +286,7 @@ static void *queue_thread(void *arg) | |||
| 286 | pthread_t pth; | 286 | pthread_t pth; |
| 287 | 287 | ||
| 288 | pthread_create(&pth, NULL, purge_thread, NULL); | 288 | pthread_create(&pth, NULL, purge_thread, NULL); |
| 289 | pthread_detach(pth); | ||
| 289 | 290 | ||
| 290 | /* next purge time is tomorrow */ | 291 | /* next purge time is tomorrow */ |
| 291 | purge_time = t + 24 * 60 * 60; | 292 | purge_time = t + 24 * 60 * 60; |