forked from qt-creator/qt-creator
Utils: Remove SynchronousProcess::readDataFromProcess helper
QtcProcess can do that nowadays. Change-Id: Ic3b08146263da2eb189f043eb743c621c18b82c8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1324,6 +1324,11 @@ static bool askToKill(const QString &command)
|
||||
#endif
|
||||
}
|
||||
|
||||
// Helper for running a process synchronously in the foreground with timeout
|
||||
// detection similar SynchronousProcess' handling (taking effect after no more output
|
||||
// occurs on stderr/stdout as opposed to waitForFinished()). Returns false if a timeout
|
||||
// occurs. Checking of the process' exit state/code still has to be done.
|
||||
|
||||
bool QtcProcess::readDataFromProcess(int timeoutS,
|
||||
QByteArray *stdOut,
|
||||
QByteArray *stdErr,
|
||||
|
||||
Reference in New Issue
Block a user