gecko-dev/ipc/chromium
Jed Davis 48864d54a3 Bug 1880590 - Fix benign data race during fork server shutdown. r=nika
There's a race between `ProcessWatcher` checking if the fork server is
in use (via `ForkServiceChild::Get`) and the fork server shutdown path
(`ForkServerLauncher::Observe` calling `StopForkServer`).  The race
seems to be benign, but it causes test failures under TSan.

As a relatively simple fix, this patch changes `ProcessWatcher` to check
an atomic flag which is true if the fork server has ever been run.
(This also means that, in the case where the fork server has been shut
down but some of its child processes are still running, we will continue
to use the `kill(pid, 0)` fallback.)

Differential Revision: https://phabricator.services.mozilla.com/D203077
2024-03-02 01:44:38 +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 1880590 - Fix benign data race during fork server shutdown. r=nika 2024-03-02 01:44:38 +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 1851095 - Step 1: Modify process_title_linux to work in our context, and build it. r=nika,glandium 2023-09-22 03:41:39 +00:00