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

Provide easier handling of stdin/stdout for spawned QCoreApplication

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None

      Description

      stdin/stdout handling of the parent process is nicely abstracted away with QProcess.

      On the other hand, getting this right for the child process is quite error prone:

      • reading blocks when stdin is opened using a file descriptor (QTBUG-92905)
      • each read causes 1 F_GETFL and 2 F_SETFL fnctl calls
      • writing is buffered when stdout is opened using a file handle, an explicit flush is necessary (QTBUG-92906)

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              vhilshei Volker Hilsheimer
              Reporter:
              bruns Stefan BrĂ¼ns
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are 2 open Gerrit changes