Fix subprocess and Update subprocess from Python 3.13.11#6583
Fix subprocess and Update subprocess from Python 3.13.11#6583youknowone merged 7 commits intoRustPython:mainfrom
Conversation
📝 WalkthroughWalkthroughThis PR implements missing functionality in subprocess pre-exec setup (umask and signal restoration), makes POSIX spawn environment optional with automatic inheritance, adds a runtime buffering warning for edge cases, and expands Windows threading constants. Changes
Sequence Diagram(s)sequenceDiagram
participant Child as Child Process Setup
participant Umask as libc::umask
participant Signal as libc::signal
participant Exec as exec/setsid/pgid
Child->>Child: Check child_umask
alt child_umask >= 0
Child->>Umask: Set process umask
Umask-->>Child: umask applied
end
Child->>Child: Check restore_signals
alt restore_signals == true
Child->>Signal: Restore SIGPIPE to default
Signal-->>Child: Handler set
Child->>Signal: Restore SIGXFSZ to default
Signal-->>Child: Handler set
end
Child->>Exec: Proceed with exec/setsid/pgid
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (4)
🧰 Additional context used📓 Path-based instructions (1)**/*.rs📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
🧬 Code graph analysis (1)crates/vm/src/stdlib/io.rs (1)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Code has been automatically formatted The code in this PR has been formatted using git pull origin subprocess |
b5f2c99 to
ffcda01
Compare
Summary by CodeRabbit
New Features
Improvements
✏️ Tip: You can customize this high-level summary in your review settings.