emake Shutdown

Reporter: RobertBColton  |  Status: open  |  Last Modified: July 06, 2020, 12:34:07 PM
This follows from #2071 that emake should be handling SIGINT signals and using the new libStopBuild to ask ENIGMA to gracefully shutdown the build. This is to prevent orphan processes like make continuing to run after things such as the server have died. The only other thing ENIGMA backend might need to provide is a more forceful libAbortBuild that can be used to force kill the build if it doesn't stop nicely, which we could use in the more rare SIGKILL circumstances for the frontend.

On Windows, emake can use SetConsoleCtrlHandler to handle the CTRL+C that's generated and call the plugin method to stop the build.

Please sign in to post comments, or you can view this issue on GitHub.