QProcess/Unix: don't overwrite openChannels() error message
Pick-to: 6.5 Change-Id: Icfe44ecf285a480fafe4fffd174d0fa4701b0076 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
67431e4168
commit
956b249528
@ -421,8 +421,12 @@ void QProcessPrivate::startProcess()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Initialize pipes
|
// Initialize pipes
|
||||||
if (!openChannels() || qt_create_pipe(childStartedPipe) != 0) {
|
if (!openChannels()) {
|
||||||
setErrorAndEmit(QProcess::FailedToStart, qt_error_string(errno));
|
// openChannel sets the error string
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (qt_create_pipe(childStartedPipe) != 0) {
|
||||||
|
setErrorAndEmit(QProcess::FailedToStart, "pipe: "_L1 + qt_error_string(errno));
|
||||||
cleanup();
|
cleanup();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user