I am new to C++ on linux, I build a client-server program in c++ on Redhat linux. In which Server is multithreaded. One thread always keep in infinite loop and keep Looking for any client Request. That mean server always keep running until or unless it is not killed by Kill [pid] command
Now my Question is , How to exit from that infinite loop server program gets close by kill command.