-
Martin Kletzander authored
When C-c is sent to the process, the main thread (server) receives it and sets keep_running to 0, but the second thread is still running. Also, the second thread is not cleaned up after pthread_join() or pthread_destroy(). This patch adds the cleanup function before all exit points of the program and fixes the cleansing of the second thread.
22c2f5fd