gh-109566: regrtest _add_python_opts() handles KeyboardInterrupt (#110062)

In the subprocess code path, wait until the child process completes
with a timeout of EXIT_TIMEOUT seconds.

Fix create_worker_process() regression: use start_new_session=True if
USE_PROCESS_GROUP is true.

WorkerThread.wait_stopped() uses a timeout of 60 seconds, instead of
30 seconds.
This commit is contained in:
Victor Stinner 2023-09-29 02:51:22 +02:00 committed by GitHub
parent bd4518c60c
commit 235aacdeed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 14 deletions

View file

@ -541,7 +541,7 @@ def display_header(use_resources: tuple[str, ...]):
print(f"== resources ({len(use_resources)}): "
f"{', '.join(sorted(use_resources))}")
else:
print(f"== resources: (all disabled, use -u option)")
print("== resources: (all disabled, use -u option)")
# This makes it easier to remember what to set in your local
# environment when trying to reproduce a sanitizer failure.