From 3d689e790b9dd5e00325e043ebfc076177073681 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 25 Jun 2019 16:52:28 +0200 Subject: [PATCH] Force the exit of the forked process. The `exit` function will call the functions registered. Qt may (and does) register function and may (and does) hangup waiting for some mutex to be free. Here we are in a forked process and we want to process to exit without doing any cleanup (because we are a clone of a process that will continue and we don't want to mess it). --- src/subprocess_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subprocess_unix.cpp b/src/subprocess_unix.cpp index 7fcd7b15b..bc4791736 100644 --- a/src/subprocess_unix.cpp +++ b/src/subprocess_unix.cpp @@ -67,7 +67,7 @@ void UnixImpl::run(commandLine_t& commandLine) commandLine.push_back(NULL); if (execvp(binary, const_cast(commandLine.data()))) { perror("Cannot launch\n"); - exit(-1); + _exit(-1); } break;