turbo
be6f0236 - fix: Give a launcher's target inheritable copies of the standard handles

Commit
2 days ago
fix: Give a launcher's target inheritable copies of the standard handles A parent can start the launcher with no standard handles named and no handles inherited, as Python's `subprocess.run` does by default. Windows then copies the parent's standard handles into the launcher exactly as they are. When the parent's handles were not inheritable, neither were the launcher's, and the target, which inherits handles from the launcher, got none: its output was lost. Run directly, the same target printed its output. The launcher now passes inheritable copies of its three standard handles to the target and keeps the rest of its own startup information. The new test starts the launcher that way from inside a job like the one `turbo run` gives each task. It also shows that closing that job ends the launcher, the target, and a process the target started, although the launcher's own job lets the target's processes leave it.
Author
Parents
Loading