gecko-dev/ipc/chromium
Jed Davis 1dcd15d26b Bug 1881386 - Check for zombie processes in ProcessWatcher on Linux. r=glandium
This patch checks whether child processes are in the zombie state
(`exit`ed but not `wait`ed), by parsing `/proc/{pid}/stat`, and treats
them as dead in that case.

Child processes can end up stuck in zombie state if the fork server
exits when child processes are still running, which causes them to be
reparented to pid 1, and pid 1 isn't acting as `init`, which can happen
in container environments like Docker depending on configuration.  In
particular, this is currently the case in the containers used by Mozilla
CI to run tests.  Without this patch, if the fork server is enabled, we
wait forever for the process to exit and then (in the Mozilla CI case)
some other timeout fires and causes the test run to fail.

Differential Revision: https://phabricator.services.mozilla.com/D204096
2024-03-19 21:05:40 +00:00
..
gtest Bug 1879197 - Part 7: Port "Delay erasing proxy ports when peer died", r=ipc-reviewers,mccr8 2024-02-14 18:09:18 +00:00
src Bug 1881386 - Check for zombie processes in ProcessWatcher on Linux. r=glandium 2024-03-19 21:05:40 +00:00
chromium-config.mozbuild Bug 1677775 - reformat .mozbuild files with Black r=linter-reviewers,geckoview-reviewers,firefox-build-system-reviewers,ahal,glandium,owlish,sylvestre 2023-12-08 04:26:45 +00:00
moz.build Bug 1883565 - Add a stub LaunchApp for iOS. r=ipc-reviewers,nika 2024-03-05 22:41:32 +00:00