Skip to content

StreamPumper threads are not interrupted when main thread is interrupted #60

@ghilainm

Description

@ghilainm

StreamPumper threads are not interrupted when main thread is interrupted.

This piece of code seems to miss an outputThread.interrupt().

if (outputThread != null) { log.trace("Joining output thread {}...", outputThread); try { outputThread.join(); outputThread = null; } catch (InterruptedException e) { // ignore } }

This cause threads to be blocked until the process dies. Or it is necessary to call several time interrupt with some delay in order to really cause the thread to be interrupted.

Metadata

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