process: avoid zombies

fixes #20
This commit is contained in:
Vaxry 2024-11-13 17:19:47 +00:00
parent 91c1634727
commit 315fba5d21

View file

@ -142,6 +142,9 @@ bool Hyprutils::OS::CProcess::runSync() {
close(outPipe[0]);
close(errPipe[0]);
// reap child
waitpid(pid, nullptr, 0);
return true;
}