I'm trying to use PyCharm to work on an existing codebase that runs a server.
When I terminate the process in the "run" window of PyCharm it prints out "Process finished with exit code 143". I know it doesn't use SIGTERM or a KeyboardInterrupt to stop the process because the server code handles those (to stop the process cleanly). I can't figure out how PyCharm stops the process - I need to know so I can make it terminate the server cleanly in that situation (most notably I need to terminate the worker process pool attached to the server).
So, how does the "stop" button in the "run" display actually stop the program?