mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 21:51:55 -07:00
fix raw exec in configmanager
This commit is contained in:
@@ -420,7 +420,7 @@ void CConfigManager::handleRawExec(const std::string& command, const std::string
|
|||||||
// run in grandchild
|
// run in grandchild
|
||||||
close(socket[0]);
|
close(socket[0]);
|
||||||
close(socket[1]);
|
close(socket[1]);
|
||||||
execl("/bin/sh", "/bin/sh", "-c", args.c_str(), nullptr);
|
execl("/bin/sh", "/bin/sh", "-c", toExec.c_str(), nullptr);
|
||||||
// exit grandchild
|
// exit grandchild
|
||||||
_exit(0);
|
_exit(0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user