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

FileInputStream(new File("./FIFO")) blocks current thread forever

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 6
    • core-libs
    • generic
    • linux

      new FileInputStream(new File("./FIFO")) call on Unix blocks current thread forever if the file is FIFO (named pipe). Whenever this happen it actually means that your application (NetBeans in my case) is unusable (especially if it is called from AWT thread). I din't find any workaround how to prevent from it or how to recover from it. There is no way how to identify such fifo files, FileChannel isn't selectable, such blocked thread can't be killed by Thread.interrupt call.

            bpb Brian Burkhalter
            rmatous Radek Matouš
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: