Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erts: Fix -oldshell and -noshell on Windows #7359

Merged
merged 2 commits into from Jun 8, 2023

Conversation

garazdawi
Copy link
Contributor

When not using a terminal we need to use ReadFile to read from stdin. Before this fix we only used ReadFile if stdin was not a terminal, but the same behaviour should be used if we disable the terminal using
flags to erl.exe.

Fixes #7324

@garazdawi garazdawi added team:VM Assigned to OTP team VM fix labels Jun 5, 2023
@garazdawi garazdawi self-assigned this Jun 5, 2023
@garazdawi garazdawi linked an issue Jun 5, 2023 that may be closed by this pull request
@garazdawi garazdawi force-pushed the lukas/erts/fix-windows-oldshell branch from b5401ef to 56c244d Compare June 5, 2023 07:50
@github-actions
Copy link
Contributor

github-actions bot commented Jun 5, 2023

CT Test Results

       4 files     187 suites   1h 50m 5s ⏱️
2 910 tests 2 631 ✔️ 276 💤 3
3 525 runs  3 180 ✔️ 342 💤 3

For more details on these failures, see this check.

Results for commit ee2f6e6.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@garazdawi garazdawi force-pushed the lukas/erts/fix-windows-oldshell branch 3 times, most recently from ad3d7a7 to 22287c2 Compare June 7, 2023 07:08
@garazdawi garazdawi added the testing currently being tested, tag is used by OTP internal CI label Jun 7, 2023
@garazdawi garazdawi force-pushed the lukas/erts/fix-windows-oldshell branch from ee2f6e6 to 8ef088b Compare June 8, 2023 13:16
When not using a terminal we need to use ReadFile to
read from stdin. Before this fix we only used ReadFile
if stdin was not a terminal, but the same behaviour
should be used if we disable the terminal using
flags to erl.exe.

Fixes erlang#7324
@garazdawi garazdawi force-pushed the lukas/erts/fix-windows-oldshell branch from 8ef088b to d9ef5bb Compare June 8, 2023 13:21
@garazdawi garazdawi merged commit 1639975 into erlang:maint Jun 8, 2023
2 checks passed
@garazdawi garazdawi deleted the lukas/erts/fix-windows-oldshell branch June 8, 2023 13:22
@garazdawi garazdawi added this to the OTP-26.1 milestone Jun 8, 2023
@garazdawi garazdawi modified the milestones: OTP-26.1, OTP-26.0.2 Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Erlang/OTP 26] [Windows] Old shell does not echo
1 participant