Skip to content

subprocess.check_output with shell=True ignores the timeout #70721

@DanielShaulov

Description

@DanielShaulov
BPO 26534
Nosy @vadmium, @fangyi-zhou, @haizaar
Dependencies
  • bpo-5115: Extend subprocess.kill to be able to kill process groups
  • Superseder
  • bpo-37424: subprocess.run timeout does not function if shell=True and capture_output=True
  • Files
  • killpg.patch: Adds killpg method and kill_group argument
  • 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 2019-07-01.00:06:43.321>
    created_at = <Date 2016-03-10.23:45:31.399>
    labels = ['3.7', 'type-feature', 'library']
    title = 'subprocess.check_output with shell=True ignores the timeout'
    updated_at = <Date 2019-07-01.00:06:43.321>
    user = 'https://bugs.python.org/DanielShaulov'

    bugs.python.org fields:

    activity = <Date 2019-07-01.00:06:43.321>
    actor = 'gregory.p.smith'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-07-01.00:06:43.321>
    closer = 'gregory.p.smith'
    components = ['Library (Lib)']
    creation = <Date 2016-03-10.23:45:31.399>
    creator = 'Daniel Shaulov'
    dependencies = ['5115']
    files = ['42122']
    hgrepos = []
    issue_num = 26534
    keywords = ['patch']
    message_count = 3.0
    messages = ['261533', '292221', '292225']
    nosy_count = 5.0
    nosy_names = ['astrand', 'martin.panter', 'Daniel Shaulov', 'fangyizhou', 'haizaar']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '37424'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue26534'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions