launch: don't try to write daemon exit from monitor process

This commit is contained in:
outfoxxed 2024-11-24 13:38:14 -08:00
parent e3d003e7ab
commit 87a57b7a2c
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -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) {