3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-03-01 12:54:46 +00:00

reset sigmask on fork

This commit is contained in:
vaxerski
2022-10-06 19:02:03 +01:00
parent 0508c7d384
commit 922e978f56
2 changed files with 10 additions and 0 deletions

View File

@ -500,6 +500,11 @@ void CKeybindManager::spawn(std::string args) {
}
if (child == 0) {
// run in child
sigset_t set;
sigemptyset(&set);
sigprocmask(SIG_SETMASK, &set, NULL);
grandchild = fork();
if (grandchild == 0) {
// run in grandchild