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

Don't connect stdin to sub-processes #4615

Merged
merged 1 commit into from
Sep 3, 2021
Merged

Conversation

dra27
Copy link
Member

@dra27 dra27 commented Mar 26, 2021

Split off from #3897. @AltGr agreed this was worth doing in #3897 (review), but it's too close to the 2.1 release for a change which isn't a critical part of that fix, so this can be merged post-2.1

@dra27 dra27 added this to the 2.2.0~alpha milestone Mar 26, 2021
@rjbou rjbou added this to PR in progress in Opam 2.2.0 via automation Mar 26, 2021
@AltGr
Copy link
Member

AltGr commented Mar 31, 2021

As for the download command, I remember trying that to prevent git from asking for passphrases, but that wasn't enough and actually made the situation even worse...

@dra27
Copy link
Member Author

dra27 commented Apr 12, 2021

Indeed - cross-referencing #4447.

On Windows, default to not forwarding stdin (as it attaches the
Console). Also explicitly don't connect stdin for the download command
in OpamDownload or for the cygpath wrapper in OpamSystem.
@rjbou rjbou moved this from PR in progress to PR finalised in Opam 2.2.0 Sep 1, 2021
@dra27 dra27 merged commit 3e6e20a into ocaml:master Sep 3, 2021
Opam 2.2.0 automation moved this from PR finalised to Done Sep 3, 2021
@dra27 dra27 deleted the controlled-stdin branch September 3, 2021 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Opam 2.2.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants