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

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.3, 6.1.0 FF
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None
    • Platform/s:
      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

          For Gerrit Dashboard: QTBUG-92905
          # Subject Branch Project Status CR V

            Activity

              People

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

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are 2 open Gerrit changes