Skip to content
Snippets Groups Projects
Commit 6172b4b7 authored by rswindell's avatar rswindell
Browse files

Alterego reported a scenario where the web server's cleanup() would wait

forever for 1 child thread (presumably the http_logging_thread) to terminate:

 >   8/27  02:39:43p  Waiting for HTTP logging thread to terminate...
 >   8/27  02:39:43p  HTTP logging thread started
 >   8/27  02:39:43p  HTTP logging thread received NULL linked list log entry
 >   8/27  02:40:44p  !TIMEOUT waiting for HTTP logging thread to terminate
 >   8/27  02:40:44p  Done waiting for HTTP logging thread to terminate
 >   8/27  02:40:44p  0000 Waiting for 1 child threads to terminate

 <infinite wait loop here>

- Add an extra terminate_http_logging_thread check to the top of the loop in
  http_logging_thread().
- Signal the log_list semaphore in the "Waiting for HTTP logging thread" and
  "Waiting for x child threads" loops.
parent 273d5b88
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment