Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid deadlock in test when sharing process group (#32067)
The testSharedGet test spawns child processes and waits for them to exit. The main process will wait for all child processes in its own process group. While this usually works, the processes involved in the test case are not necessarily the only processes in their process group. Should PHPUnit itself be executing in a child process, its parent process will also be there, causing a deadlock. This change will move the main test process into its own process group before forking to avoid the aforementioned situation.
- Loading branch information