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

fix: only hookup stdin on windows for dcm login #271

Merged
merged 1 commit into from
Mar 31, 2024

Conversation

AWS-Samuel
Copy link
Contributor

@AWS-Samuel AWS-Samuel commented Mar 31, 2024

What was the problem/requirement? (What/Why)

For the login flow, we were hooking into stdin on all systems due to a windows specific behavior. This puts us at risk of receiving a SIGTTIN on Linux even though we don't need to read from stdin when launching in a TTY

What was the solution? (How)

Only hook into stdin on Windows operating systems.

What is the impact of this change?

Login is more robust on non-windows systems

How was this change tested?

Tested on a RHEL 9 instance and observed that the login/logout flows could be completed successfully with this change

Is this a breaking change?

No


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@AWS-Samuel AWS-Samuel requested a review from a team as a code owner March 31, 2024 18:11
Signed-off-by: Samuel Anderson <119458760+AWS-Samuel@users.noreply.github.com>
@AWS-Samuel AWS-Samuel merged commit cb91b2c into mainline Mar 31, 2024
18 checks passed
@AWS-Samuel AWS-Samuel deleted the samuel/login_change branch March 31, 2024 18:55
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.

4 participants