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

java.lang.Process: IOException while reading error stream (win32)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • core-libs
    • beta
    • x86
    • generic

      If you read a Process.getErrorStream after the external process was killed, you get "IOException: The pipe has been ended". This bug is specific to Windows OS only.

      I am attaching simple program that demonstrates this. It works fine on Solaris or on any 1.3, however it fails on 1.4 beta (62 and 63 at least)/Windows.

      The program prints out whole error output of the killed process so even if "something is broken" I believe that FileDispatcher should return EOF in this case.

            kkladkosunw Konstantin Kladko (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: