Multiple improvements to the shutdown procedure
This commit is contained in:
parent
4203a61b69
commit
d413388761
7 changed files with 41 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue