Details
Description
See attached example.
#include <QtCore/QDebug> #include <QtCore/QProcess> int main(int argc, char *argv[]) { QProcess p; p.start("find \"foo\""); p.waitForStarted(); p.write("bar"); p.closeWriteChannel(); qDebug() << "waiting..."; p.waitForFinished(1000); // program stops here, ignoring timeout qDebug() << "You won't see this..."; }
"find" is not started because of the incorrect handling of quotation marks. Program continues up to the call to waitForFinished() and stops there. The timeout seems to be ignored.
Yes, the documentation says that quotation marks must be quoted, but this doesn't change this behavior.
Attachments
Issue Links
- relates to
-
QTBUG-29391 Windows: QProcess::waitForFinished not returning after timeout
- Closed