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

Threads are not notified when the stream they are reading is closed

    XMLWordPrintable

Details

    • 1.0fcs
    • sparc
    • solaris_2.4
    • Not verified

    Description

      If a thread is blocked on a read system call on a file descriptor
      and that file descriptor is closed by a different thread, the first
      thread (the reader) is not notified that its file descriptor is
      closed.

      This creates a serious race condition becuase if a new file is
      opened and receives the same file descriptor, then the first reader
      thread may accidentally read some data from the new file before
      it discovers that the old file descriptor was closed.

      Attachments

        Activity

          People

            duke J. Duke
            flar Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: