diff --git a/src/corelib/io/qlockfile.cpp b/src/corelib/io/qlockfile.cpp index 197b1f80e5..129cf01b63 100644 --- a/src/corelib/io/qlockfile.cpp +++ b/src/corelib/io/qlockfile.cpp @@ -330,7 +330,7 @@ QByteArray QLockFilePrivate::lockFileContents() const { // Use operator% from the fast builder to avoid multiple memory allocations. return QByteArray::number(QCoreApplication::applicationPid()) % '\n' - % QCoreApplication::applicationName().toUtf8() % '\n' + % processNameByPid(QCoreApplication::applicationPid()).toUtf8() % '\n' % machineName().toUtf8() % '\n'; }