diff --git a/src/os/Process.cpp b/src/os/Process.cpp index 8fcd16d..e415129 100644 --- a/src/os/Process.cpp +++ b/src/os/Process.cpp @@ -142,6 +142,9 @@ bool Hyprutils::OS::CProcess::runSync() { close(outPipe[0]); close(errPipe[0]); + // reap child + waitpid(pid, nullptr, 0); + return true; }