Skip to content

Commit 87a57b7

Browse files
committed
launch: don't try to write daemon exit from monitor process
1 parent e3d003e commit 87a57b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/launch/command.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,13 @@ int runCommand(int argc, char** argv, QCoreApplication* coreApplication) {
6565
<< ": " << qt_error_string();
6666
}
6767

68-
DAEMON_PIPE = closepipes[1];
69-
7068
pid_t pid = fork(); // NOLINT (include)
7169

7270
if (pid == -1) {
7371
qFatal().nospace() << "Failed to fork daemon with error " << errno << ": "
7472
<< qt_error_string();
7573
} else if (pid == 0) {
74+
DAEMON_PIPE = closepipes[1];
7675
close(closepipes[0]);
7776

7877
if (setsid() == -1) {

0 commit comments

Comments
 (0)