Skip to content

Commit b66db44

Browse files
LiHua000deepin-mozart
authored andcommitted
fix: Adapting to QProcess Usage in Qt 6
Log: The abnormal execution of QProcess resulted in empty fuser output, causing port availability verification to fail, which ultimately led to connection failures with the correct debugging backend and freeze ide Bug: https://pms.uniontech.com/bug-view-315851.html
1 parent c023178 commit b66db44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tools/debugadapter/debugger/python/pythondebugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void PythonDebugger::initialize(const QString &pythonExecute,
115115
auto checkPortFree = [](int port) {
116116
QProcess process;
117117
QString cmd = QString("fuser %1/tcp").arg(port);
118-
process.start(cmd);
118+
process.start("bash", {"-c", cmd});
119119
process.waitForFinished();
120120
QString ret = process.readAll();
121121
if (ret.isEmpty())

0 commit comments

Comments
 (0)