mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-16 04:23:49 -07:00
Multiple improvements to the shutdown procedure
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user