Commit 8c14daf9 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

do not create bizarre or even invalid fifo names under windows

parent 7587f6e3
...@@ -80,7 +80,7 @@ bool OutputCollector::listen() ...@@ -80,7 +80,7 @@ bool OutputCollector::listen()
return m_server->isListening(); return m_server->isListening();
m_server = new QLocalServer(this); m_server = new QLocalServer(this);
connect(m_server, SIGNAL(newConnection()), SLOT(newConnectionAvailable())); connect(m_server, SIGNAL(newConnection()), SLOT(newConnectionAvailable()));
return m_server->listen(QLatin1String("creator-") + QCoreApplication::applicationPid()); // XXX how to make that secure? return m_server->listen(QLatin1String("creator-%1").arg(QCoreApplication::applicationPid())); // XXX how to make that secure?
#else #else
if (!m_serverPath.isEmpty()) if (!m_serverPath.isEmpty())
return true; return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment