Skip to content

subprocess.check_output() with timeout does not exit if child process does not generate output after timeout #76976

@MikeLewis

Description

@MikeLewis
mannequin
BPO 32795
Nosy @eryksun, @fangyi-zhou
PRs
  • bpo-32795: Subprocess setpgid #5684
  • Superseder
  • bpo-37424: subprocess.run timeout does not function if shell=True and capture_output=True
  • Files
  • timeout_examples.tgz: Python 2.7 and Python 3 examples recreating the issue
  • 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 2021-02-27.19:32:06.090>
    created_at = <Date 2018-02-08.09:11:07.043>
    labels = ['type-bug', 'library']
    title = 'subprocess.check_output() with timeout does not exit if child process does not generate output after timeout'
    updated_at = <Date 2021-02-27.19:32:06.090>
    user = 'https://bugs.python.org/MikeLewis'

    bugs.python.org fields:

    activity = <Date 2021-02-27.19:32:06.090>
    actor = 'eryksun'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-02-27.19:32:06.090>
    closer = 'eryksun'
    components = ['Library (Lib)']
    creation = <Date 2018-02-08.09:11:07.043>
    creator = 'Mike Lewis'
    dependencies = []
    files = ['47429']
    hgrepos = []
    issue_num = 32795
    keywords = ['patch']
    message_count = 7.0
    messages = ['311820', '311821', '312117', '312135', '312172', '312175', '387784']
    nosy_count = 3.0
    nosy_names = ['eryksun', 'Mike Lewis', 'fangyizhou']
    pr_nums = ['5684']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = '37424'
    type = 'behavior'
    url = 'https://bugs.python.org/issue32795'
    versions = ['Python 2.7', 'Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions