Multiple improvements to the shutdown procedure

This commit is contained in:
vaxerski
2022-08-28 11:19:08 +02:00
parent 4203a61b69
commit d413388761
7 changed files with 41 additions and 7 deletions

View File

@@ -759,7 +759,7 @@ std::string getRequestFromThread(std::string rq) {
}
void HyprCtl::startHyprCtlSocket() {
std::thread([&]() {
tThread = std::thread([&]() {
const auto SOCKET = socket(AF_UNIX, SOCK_STREAM, 0);
if (SOCKET < 0) {
@@ -806,5 +806,7 @@ void HyprCtl::startHyprCtlSocket() {
}
close(SOCKET);
}).detach();
});
tThread.detach();
}