You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2023/05/05 22:09:00 UTC

[jira] [Commented] (MSHARED-1072) executeCommandLineAsCallable hangs forever if InputStream is used

    [ https://issues.apache.org/jira/browse/MSHARED-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17720019#comment-17720019 ] 

Slawomir Jaranowski commented on MSHARED-1072:
----------------------------------------------

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.

> executeCommandLineAsCallable hangs forever if InputStream is used
> -----------------------------------------------------------------
>
>                 Key: MSHARED-1072
>                 URL: https://issues.apache.org/jira/browse/MSHARED-1072
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-shared-utils
>    Affects Versions: maven-shared-utils-3.4.1
>            Reporter: Slawomir Jaranowski
>            Assignee: Slawomir Jaranowski
>            Priority: Major
>             Fix For: maven-shared-utils-3.4.0, maven-shared-utils-3.4.1
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)