mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 21:51:55 -07:00
Fixing format issue
This commit is contained in:
@@ -195,14 +195,14 @@ void CConfigManager::handleRawExec(const std::string& command, const std::string
|
|||||||
_exit(0);
|
_exit(0);
|
||||||
}
|
}
|
||||||
close(socket[0]);
|
close(socket[0]);
|
||||||
(void) write(socket[1], &grandchild, sizeof(grandchild));
|
write(socket[1], &grandchild, sizeof(grandchild));
|
||||||
close(socket[1]);
|
close(socket[1]);
|
||||||
// exit child
|
// exit child
|
||||||
_exit(0);
|
_exit(0);
|
||||||
}
|
}
|
||||||
// run in parent
|
// run in parent
|
||||||
close(socket[1]);
|
close(socket[1]);
|
||||||
(void) read(socket[0], &grandchild,sizeof(grandchild));
|
read(socket[0], &grandchild, sizeof(grandchild));
|
||||||
close(socket[0]);
|
close(socket[0]);
|
||||||
// clear child and leave child to init
|
// clear child and leave child to init
|
||||||
waitpid(child, NULL, 0);
|
waitpid(child, NULL, 0);
|
||||||
|
@@ -167,14 +167,14 @@ void CKeybindManager::spawn(std::string args) {
|
|||||||
_exit(0);
|
_exit(0);
|
||||||
}
|
}
|
||||||
close(socket[0]);
|
close(socket[0]);
|
||||||
(void) write(socket[1], &grandchild, sizeof(grandchild));
|
write(socket[1], &grandchild, sizeof(grandchild));
|
||||||
close(socket[1]);
|
close(socket[1]);
|
||||||
// exit child
|
// exit child
|
||||||
_exit(0);
|
_exit(0);
|
||||||
}
|
}
|
||||||
// run in parent
|
// run in parent
|
||||||
close(socket[1]);
|
close(socket[1]);
|
||||||
(void) read(socket[0], &grandchild,sizeof(grandchild));
|
read(socket[0], &grandchild, sizeof(grandchild));
|
||||||
close(socket[0]);
|
close(socket[0]);
|
||||||
// clear child and leave child to init
|
// clear child and leave child to init
|
||||||
waitpid(child, NULL, 0);
|
waitpid(child, NULL, 0);
|
||||||
|
Reference in New Issue
Block a user