Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
e76c300f
Commit
e76c300f
authored
Feb 19, 2009
by
Oswald Buddenhagen
Browse files
create less likely to clash fifo names on windows
parent
8002b1a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/outputcollector.cpp
View file @
e76c300f
...
...
@@ -39,6 +39,8 @@
#include
<QtNetwork/QLocalSocket>
#include
<QtCore/QCoreApplication>
#include
<stdlib.h>
#else
#include
<QtCore/QFile>
...
...
@@ -80,7 +82,9 @@ bool OutputCollector::listen()
return
m_server
->
isListening
();
m_server
=
new
QLocalServer
(
this
);
connect
(
m_server
,
SIGNAL
(
newConnection
()),
SLOT
(
newConnectionAvailable
()));
return
m_server
->
listen
(
QString
::
fromLatin1
(
"creator-%1"
).
arg
(
QCoreApplication
::
applicationPid
()));
// XXX how to make that secure?
return
m_server
->
listen
(
QString
::
fromLatin1
(
"creator-%1-%2"
)
.
arg
(
QCoreApplication
::
applicationPid
())
.
arg
(
rand
()));
#else
if
(
!
m_serverPath
.
isEmpty
())
return
true
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment