Skip to content

Popen.poll() doesn't reflect the returncode value when using a callback #164

@inorton

Description

@inorton

I have a number of callers that do..

proc = subprocess.Popen(cmdline)
while proc.poll() is None:
    time.sleep(1)

I register with:

def my_callback():
    print("called")
    time.sleep(1)

fp.register(cmdline, returncode=1, callback=my_callback)

But proc.poll() seems to always return None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions