Skip to content

Check enablement state for all output write operations - #1581

Merged
Akinwale Alagbe (hackean-msft) merged 4 commits into
microsoft:masterfrom
hackean-msft:user/akalagbe/output-stream-fix
Oct 14, 2021
Merged

Akinwale Alagbe (hackean-msft) merged 4 commits into
microsoft:masterfrom
hackean-msft:user/akalagbe/output-stream-fix

Conversation

@hackean-msft

@hackean-msft Akinwale Alagbe (hackean-msft) commented Oct 12, 2021 •

Copy link
Copy Markdown
Contributor

The color contamination fix addressed by #1527 routes all output write operations through OutputStream including Non virtual terminal operations. The fix introduced a bug causing a write operation without checking the enablement state of the output stream. The fix addressing issue by checking if the write operation should be permitted.

The main output stream that controls all write operation is never cloned when the main context is cloned, this causes the output stream to be disabled upon the destruction of a subcontext(because we disable the output stream to prevent multiple background jobs from writing to the output stream, when user force terminates). This pull request fixes this issue by allowing disabling of BaseOutputStream through forceful termination only.


Microsoft Reviewers: Open in CodeFlow

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Thanks!

@yao-msft yao-msft left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@hackean-msft
Akinwale Alagbe (hackean-msft) merged commit 5133303 into microsoft:master Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression: upgrade and import no longer print anything to the console.

4 participants