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

subprocess + stdout redirection + wait + svn= hang #47843

Closed
tebeka mannequin opened this issue Aug 18, 2008 · 2 comments
Closed

subprocess + stdout redirection + wait + svn= hang #47843

tebeka mannequin opened this issue Aug 18, 2008 · 2 comments
Labels
stdlib Python modules in the Lib dir

Comments

@tebeka
Copy link
Mannequin

tebeka mannequin commented Aug 18, 2008

BPO 3593
Nosy @gpshead, @tebeka
Files
  • svnout.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2008-09-22.00:48:40.356>
    created_at = <Date 2008-08-18.21:30:27.913>
    labels = ['invalid', 'library']
    title = 'subprocess + stdout redirection + wait + svn= hang'
    updated_at = <Date 2008-09-22.00:48:40.343>
    user = 'https://github.com/tebeka'

    bugs.python.org fields:

    activity = <Date 2008-09-22.00:48:40.343>
    actor = 'gregory.p.smith'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-09-22.00:48:40.356>
    closer = 'gregory.p.smith'
    components = ['Library (Lib)']
    creation = <Date 2008-08-18.21:30:27.913>
    creator = 'tebeka'
    dependencies = []
    files = ['11150']
    hgrepos = []
    issue_num = 3593
    keywords = []
    message_count = 2.0
    messages = ['71385', '73547']
    nosy_count = 2.0
    nosy_names = ['gregory.p.smith', 'tebeka']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue3593'
    versions = ['Python 2.6']

    @tebeka
    Copy link
    Mannequin Author

    tebeka mannequin commented Aug 18, 2008

    The attached script hangs on Ubuntu + Python 2.5.2.
    When make the limit smaller (like 10) or not redirecting stdout, it works.

    Running the svn command from shell took about 4sec, I gave up on the
    script after a minute.

    I tried it both with svn 1.4.6 and 1.5.1 - no change.

    @tebeka tebeka mannequin added the stdlib Python modules in the Lib dir label Aug 18, 2008
    @gpshead
    Copy link
    Member

    gpshead commented Sep 22, 2008

    This is not a subprocess bug. the os's pipe buffer filled up so the
    process never terminated to be noticed by wait. see:

    http://docs.python.org/dev/library/subprocess.html#subprocess.Popen.wait

    use communicate() instead of wait().

    @gpshead gpshead closed this as completed Sep 22, 2008
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant