gh-116143: Fix race condition in pydoc _start_server (#116144)

2 files changed