From 87a57b7a2c80a16475329cd6552df2dec41c951c Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 24 Nov 2024 13:38:14 -0800 Subject: [PATCH] launch: don't try to write daemon exit from monitor process --- src/launch/command.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/launch/command.cpp b/src/launch/command.cpp index 83001037..93801113 100644 --- a/src/launch/command.cpp +++ b/src/launch/command.cpp @@ -65,14 +65,13 @@ int runCommand(int argc, char** argv, QCoreApplication* coreApplication) { << ": " << qt_error_string(); } - DAEMON_PIPE = closepipes[1]; - pid_t pid = fork(); // NOLINT (include) if (pid == -1) { qFatal().nospace() << "Failed to fork daemon with error " << errno << ": " << qt_error_string(); } else if (pid == 0) { + DAEMON_PIPE = closepipes[1]; close(closepipes[0]); if (setsid() == -1) {