mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
e38f0ca71d
When the fork server is enabled, not all IPC child processes are children of the fork server; currently, process types other than content processes are still spawned directly. This means that we need to `waitid` or `waitpid` them when they exit in order to not leak zombie processes. Specifically, we can just try to `waitid` the process, and then if that fails with `ECHILD` we can assume it was a fork server child and fall back to the previous `kill(pid, 0)` workaround. This patch does that, but only if the fork server is active; otherwise we maintain the current behavior of only waiting for child processes directly. Differential Revision: https://phabricator.services.mozilla.com/D168756 |
||
---|---|---|
.. | ||
app | ||
chromium | ||
contentproc | ||
docs | ||
glue | ||
gtest | ||
ipdl | ||
mscom | ||
testshell | ||
moz.build | ||
pull-chromium.py |