Skip to content

Race condition collecting output #45

Closed
@kpu

Description

These threads should not need interrupt because they should naturally reach end of stream and then join:

tError.interrupt();
tInput.interrupt();
tError.join();
tInput.join();
errorStreamGobbler.CloseBuffer();
sbError = errorStreamGobbler.getSbText();
sb = inputStreamGobbler.getSbText();

Currently as coded it's possible to interrupt before they collect all of the program's output, non-deterministically and silently resulting in less data.

Activity

added a commit that references this issue on Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Race condition collecting output · Issue #45 · bitextor/pdf-extract