From a335fb7ab3febb1ac400e206cdc9a65f9d1f9a0f Mon Sep 17 00:00:00 2001 From: madhur dhillon Date: Sat, 1 Aug 2026 00:04:47 +0530 Subject: [PATCH] Clarify run_process Ctrl+C documentation --- src/trio/_subprocess.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/trio/_subprocess.py b/src/trio/_subprocess.py index d73ba3dc23..2ba2e06c60 100644 --- a/src/trio/_subprocess.py +++ b/src/trio/_subprocess.py @@ -663,10 +663,12 @@ async def my_deliver_cancel(process): which is deprecated, then single exceptions will be collapsed. .. note:: The child process runs in the same process group as the parent - Trio process, so a Ctrl+C will be delivered simultaneously to both - parent and child. If you don't want this behavior, consult your - platform's documentation for starting child processes in a different - process group. + Trio process, so a Ctrl+C will normally be delivered to both parent + and child. + + Python's ``subprocess`` API provides platform-specific options such as + ``process_group`` and ``start_new_session`` to control how child + processes are started. """