Skip to content

Commit

Permalink
process: avoid zombies
Browse files Browse the repository at this point in the history
fixes #20
  • Loading branch information
vaxerski committed Nov 13, 2024
1 parent 91c1634 commit 315fba5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/os/Process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ bool Hyprutils::OS::CProcess::runSync() {
close(outPipe[0]);
close(errPipe[0]);

// reap child
waitpid(pid, nullptr, 0);

return true;
}

Expand Down

0 comments on commit 315fba5

Please sign in to comment.