Docker: Fix deadlock

Change-Id: I065a28f8a824901a72bb98b60b3d3a75c36d8b0c
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-12-09 11:56:32 +01:00
parent 3a56be45a2
commit a5f97ed589

View File

@@ -292,6 +292,9 @@ expected_str<QFuture<Environment>> Client::start()
d->process->setCommand({d->remoteCmdBridgePath, {}});
d->process->setProcessMode(ProcessMode::Writer);
d->process->setProcessChannelMode(QProcess::ProcessChannelMode::SeparateChannels);
// Make sure the process has a codec, otherwise it will try to ask us recursively
// and dead lock.
d->process->setUtf8Codec();
connect(d->process, &Process::done, d->process, [this] {
if (d->process->resultData().m_exitCode != 0) {