1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Try closing gracefully before terminating process

Use a Microsoft recommended way of process termination for the project
process run from the editor. This allows loaded DLLs to receive and handle
DLL_PROCESS_DETACH notification and cleanup any global state before the
process actually exits.
This commit is contained in:
Marcin Zawiejski
2018-08-20 19:14:57 +02:00
parent 1eb1606f34
commit ca1c851dbd
6 changed files with 39 additions and 11 deletions

View File

@@ -329,7 +329,7 @@ Error OS_Unix::execute(const String &p_path, const List<String> &p_arguments, bo
return OK;
}
Error OS_Unix::kill(const ProcessID &p_pid) {
Error OS_Unix::kill(const ProcessID &p_pid, const int p_max_wait_msec) {
int ret = ::kill(p_pid, SIGKILL);
if (!ret) {