Skip to content

[MSHARED-1072] executeCommandLineAsCallable hangs forever if InputStream is used #313

Closed

Description

@jira-importer

Slawomir Jaranowski opened MSHARED-1072 and commented

When we use method executeCommandLineAsCallable and provide InputSteam as systemIn, after process is finished method wait forever until InputStream will be closed.

When we provide System.in as parameter InputStream will be not closed until process finished.


Affects: maven-shared-utils-3.4.1

Issue Links:

  • MRELEASE-1114 Broken interaction of maven-gpg-plugin with Gpg4win Kleopatra since 3.0.0-M6
    ("blocks")
  • MRELEASE-1091 Use non-interactive (batch) mode for forked Maven process

Remote Links:

Backported to: maven-shared-utils-3.4.1, maven-shared-utils-3.4.0

1 votes, 3 watchers

Activity

  1. jira-importer commented on May 5, 2023

    @jira-importer
    Author

    Slawomir Jaranowski commented

    System.in.read - is not unblocked during thread interrupt :)

  2. jira-importer commented on May 5, 2023

    @jira-importer
    Author

    Slawomir Jaranowski commented

    We also can not close System.in ... because can be used for next action by caller.

    So I see that unblocking reading from System.in will be the best.

  3. added
    bug
    priority:major
    on Jul 3, 2025
  4. removed
    priority:major
    on Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions