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

(process) Parent-process is stuck in reading std-out of Child-proc even though Child exits

XMLWordPrintable

    • b01

        "Parent-proc" process starts "Child-proc" process and spins in a loop of
        reading data from Child-proc's standard out via a call to
        InputStreamReader.read().
        Child-proc starts "Grand-child-proc" process and exits.
        Grand-child-proc gets in a sleep for 30 seconds and exits when the sleep
        is over.

        Parent-proc expects to return from InputStreamReader.read() to the
        Child-proc's standard out stream when Child-proc ends.
        But, the InputStreamReader.read() call does not return until
        Grand-child-proc ends even though Child-proc has already ended.

              robm Robert Mckenna
              shadowbug Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: