Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(cmd): fixed deadlock when stderr buffer overflow#357

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Byron merged 1 commit intogitpython-developers:masterfromrikdev:autointerrupt_deadlock_fix
Oct 15, 2015
Merged

fix(cmd): fixed deadlock when stderr buffer overflow#357

Byron merged 1 commit intogitpython-developers:masterfromrikdev:autointerrupt_deadlock_fix
Oct 15, 2015

Conversation

rikdev
Copy link
Contributor

Fixed deadlock when using stderr=PIPE in Popen and Git generates enough
output to a pipe such that it blocks waiting for the OS pipe buffer to
accept more data (seehttps://docs.python.org/2/library/subprocess.html#subprocess.Popen.wait)

Fixed deadlock when using stderr=PIPE in Popen and Git generates enoughoutput to a pipe such that it blocks waiting for the OS pipe buffer toaccept more data (seehttps://docs.python.org/2/library/subprocess.html#subprocess.Popen.wait)
@ByronByron added this to thev1.0.2 - Fixes milestoneOct 15, 2015
@Byron
Copy link
Member

Thank you very much ! It's quite amazing how long code like this could survive in a library (as old) as GitPython. (It's probably becauseAutoInterrupt is already an error-path which shouldn't be called by default, and indeed is called rarely).

Byron added a commit that referenced this pull requestOct 15, 2015
fix(cmd): fixed deadlock when stderr buffer overflow
@ByronByron merged commit7e58e6a intogitpython-developers:masterOct 15, 2015
Byron added a commit that referenced this pull requestOct 15, 2015
@Byron
Copy link
Member

Currently I believe GitPython does handle process channels correctly. Maybe you have an example of where this is not the case ?

Those who control the process directly, may as well callcommunicate() themselves.

@rikdev
Copy link
ContributorAuthor

I use Git with Git LFS plugin. When clone a repository with the function git.Repo.clone_from, Git LFS outputs to stderr a list of downloaded files and overflow OS pipe buffer.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Milestone
v1.0.2 - Fixes
Development

Successfully merging this pull request may close these issues.

2 participants
@rikdev@Byron

[8]ページ先頭

©2009-2025 Movatter.jp