Skip to content

Commit

Permalink
launch: don't try to write daemon exit from monitor process
Browse files Browse the repository at this point in the history
  • Loading branch information
outfoxxed committed Nov 24, 2024
1 parent e3d003e commit 87a57b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/launch/command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 87a57b7

Please sign in to comment.