Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-92905

QFile/pipe reading blocks when using a file descriptor instead of a handle

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.3, 6.1.0 FF
    • Core: I/O
    • None
    • Linux/X11

    Description

      QFile blocking;
      blocking.open(STDIN_FILENO, QIODevice::ReadOnly | QIODevice::Unbuffered);
      
      QFile nonblocking;
      nonblocking.open(stdin, QIODevice::ReadOnly | QIODevice::Unbuffered);
      

      This is due to the fh check in qfsfileengine_unix.cpp

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thiago Thiago Macieira
              bruns Stefan BrĂ¼ns
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes