summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qprocess_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/io/qprocess_p.h')
-rw-r--r--src/corelib/io/qprocess_p.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/corelib/io/qprocess_p.h b/src/corelib/io/qprocess_p.h
index 78bbe01cf2..078c617021 100644
--- a/src/corelib/io/qprocess_p.h
+++ b/src/corelib/io/qprocess_p.h
@@ -330,14 +330,11 @@ public:
#endif
QProcessEnvironment environment;
+#ifdef Q_OS_UNIX
Q_PIPE childStartedPipe[2] = {INVALID_Q_PIPE, INVALID_Q_PIPE};
- void destroyPipe(Q_PIPE pipe[2]);
-
QSocketNotifier *stateNotifier = nullptr;
-
int forkfd = -1;
-
-#ifdef Q_OS_WIN
+#else
QTimer *stdinWriteTrigger = nullptr;
QWinEventNotifier *processFinishedNotifier = nullptr;
#endif
@@ -378,6 +375,7 @@ public:
qint64 readFromChannel(const Channel *channel, char *data, qint64 maxlen);
bool writeToStdin();
+ void destroyPipe(Q_PIPE pipe[2]);
void cleanup();
void setError(QProcess::ProcessError error, const QString &description = QString());
void setErrorAndEmit(QProcess::ProcessError error, const QString &description = QString());