Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Reconfigure terminal for Console usage even if only one of stdin/stdout was used by the child#40563

Merged
stephentoub merged 2 commits intodotnet:masterfrom
tmds:process_term
Aug 27, 2019
Merged

Reconfigure terminal for Console usage even if only one of stdin/stdout was used by the child#40563
stephentoub merged 2 commits intodotnet:masterfrom
tmds:process_term

Conversation

@tmds
Copy link
Copy Markdown
Member

@tmds tmds commented Aug 24, 2019

Process: Unix: ensure we reconfigure the terminal for Console usage if only one of stdin/stdout was used by the child.
Console: Unix: Fix cache check for VTIME (read timeout).

Fixes https://github.com/dotnet/corefx/issues/40557

…f only one of stdin/stdout was used by the child.

Console: Unix: Fix cache check for VTIME (read timeout).

Fixes https://github.com/dotnet/corefx/issues/40557
@tmds
Copy link
Copy Markdown
Member Author

tmds commented Aug 24, 2019

CC @stephentoub @SteveL-MSFT

Comment thread src/System.Diagnostics.Process/src/System/Diagnostics/Process.Unix.cs Outdated
@stephentoub
Copy link
Copy Markdown
Member

@SteveL-MSFT, can you please confirm this fixes your issue(s)?

@stephentoub
Copy link
Copy Markdown
Member

@SteveL-MSFT told me offline that he'll help validate this today.

@SteveL-MSFT
Copy link
Copy Markdown

Can confirm this fixes #40557 and doesn't introduce new issues with our tests. Thanks!

@stephentoub
Copy link
Copy Markdown
Member

Thanks, @SteveL-MSFT.

@stephentoub stephentoub merged commit 4b35a6f into dotnet:master Aug 27, 2019
bool usesTerminal = !startInfo.RedirectStandardInput && !startInfo.RedirectStandardOutput;
bool usesTerminal = !(startInfo.RedirectStandardInput &&
startInfo.RedirectStandardOutput &&
startInfo.RedirectStandardError);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

for reference, discussion whether we should include RedirectStandardError here: 4b35a6f#r34854614

stephentoub pushed a commit to stephentoub/corefx that referenced this pull request Aug 28, 2019
stephentoub added a commit that referenced this pull request Aug 29, 2019
@karelz karelz added this to the 5.0 milestone Dec 19, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…ut was used by the child (dotnet/corefx#40563)

* Process: Unix: ensure we reconfigure the terminal for Console usage if only one of stdin/stdout was used by the child.
Console: Unix: Fix cache check for VTIME (read timeout).

Fixes https://github.com/dotnet/corefx/issues/40557

* Also consider not redirecting stderr as terminal usage


Commit migrated from dotnet/corefx@4b35a6f
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants