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

Provide easier handling of stdin/stdout for spawned QCoreApplication

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Core: I/O
    • 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

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes