cu-ecen-aeld / final-project-abbottwhitley

final-project-abbottwhitley created by GitHub Classroom
0 stars 0 forks source link

Cleanup Efforts #24

Closed abbottwhitley closed 3 years ago

abbottwhitley commented 3 years ago
abbottwhitley commented 3 years ago

Updated server.cpp to use DEBUG_LOG and syslog

abbottwhitley commented 3 years ago

Add code block within MAIN while loop to check active threads for completion. If threads are complete than the thread is joined.

  1. Program startup
  2. Client one connection established, handled by thread 992, checked during MAIN thread infinite loop for completion
  3. Second client connection established, handled by thread 288, both threads then checked for completion during MAIN thread infinite loop
  4. Client one terminated by client, thread 288 joined by MAIN thread
  5. Thread 992 checked for completion until client ends connection, at which point thread 992 is joined by MAIN thread
  6. SIGTERM entered in CLI and program gracefully shuts down.

image

Commit