< prev index next >

src/java.base/unix/classes/java/lang/ProcessImpl.java

Print this page
*** 624,11 ***
       * that allows the underlying file descriptor to be reclaimed when
       * the process exits, via the processExited hook.
       */
      private static class ProcessPipeOutputStream extends BufferedOutputStream {
          ProcessPipeOutputStream(int fd) {
!             super(new FileOutputStream(newFileDescriptor(fd)));
          }
  
          /** Called by the process reaper thread when the process exits. */
          synchronized void processExited() {
              OutputStream out = this.out;
--- 624,11 ---
       * that allows the underlying file descriptor to be reclaimed when
       * the process exits, via the processExited hook.
       */
      private static class ProcessPipeOutputStream extends BufferedOutputStream {
          ProcessPipeOutputStream(int fd) {
!             super(new PipeOutputStream(newFileDescriptor(fd)));
          }
  
          /** Called by the process reaper thread when the process exits. */
          synchronized void processExited() {
              OutputStream out = this.out;
< prev index next >