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(permissions): lock stdio streams when prompt is shown #17392

Merged
merged 5 commits into from
Jan 13, 2023

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Jan 13, 2023

This commit changes permission prompt to lock stdio streams when prompt
is shown.

@bartlomieju bartlomieju enabled auto-merge (squash) January 13, 2023 15:03
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -238,6 +243,9 @@ impl PermissionPrompter for TtyPrompter {
};
};

drop(_stdout_guard);
drop(_stderr_guard);
Copy link
Member

@dsherret dsherret Jan 13, 2023

Choose a reason for hiding this comment

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

We probably should remove the underscore prefixes when using an explicit drop.

@bartlomieju bartlomieju merged commit 1b17985 into denoland:main Jan 13, 2023
dsherret pushed a commit that referenced this pull request Jan 13, 2023
This commit changes permission prompt to lock stdio streams when prompt
is shown.
dsherret pushed a commit that referenced this pull request Jan 13, 2023
This commit changes permission prompt to lock stdio streams when prompt
is shown.
@bartlomieju bartlomieju deleted the permissions_prompt_lock branch January 13, 2023 17:46
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.

None yet

2 participants