Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8261570

Using Selectors with java.lang.Process's input, output and error streams.

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 15
    • Fix Version/s: None
    • Component/s: core-libs
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      A DESCRIPTION OF THE PROBLEM :
      This featrue requests proposes to make Process and ProcessBuilder to work with java.nio.Channels.

      To not block a process started with ProcessBuilder one currently has to either write a busy loop checking the status of the streams or spawn threads to block on the process's streams. If Process/ProcessBuilder would allow to configure java.nio.channels.Pipe to be used as channels the input and output to the process would become selectable and could easily be handled from a central polling logic.



        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: