Avoid mutating global STDOUT & STDERR (#1837)#1
Avoid mutating global STDOUT & STDERR (#1837)#1MitchLewis930 wants to merge 1 commit intopr_051_beforefrom
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
User description
PR_051
PR Type
Bug fix
Description
Duplicate stdout/stderr to prevent global mutation
Update tests to verify duplication behavior
Ensure sync flag independence between instances
Diagram Walkthrough
File Walkthrough
events.rb
Duplicate stdout/stderr to avoid global mutationlib/puma/events.rb
@stdoutand@stderrassignments to use.dupmethodhandle
test_events.rb
Update tests for stdout/stderr duplicationtest/test_events.rb
equality
test_stdio_respects_syncto verify sync flagindependence
test_tcp_logger.rb
Restore stdout reference for subprocess capturetest/test_tcp_logger.rb
reference
capture_subprocess_iocan access logger output correctly