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

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

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:

                There are no open Gerrit changes