mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-30 03:15:05 +00:00
launch: don't try to write daemon exit from monitor process
This commit is contained in:
1 file changed
+1
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user