diff options
Diffstat (limited to 'src/debug/debug-pal/unix/twowaypipe.cpp')
-rw-r--r-- | src/debug/debug-pal/unix/twowaypipe.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/debug/debug-pal/unix/twowaypipe.cpp b/src/debug/debug-pal/unix/twowaypipe.cpp index db4599aeb9..9dfe1e3ecb 100644 --- a/src/debug/debug-pal/unix/twowaypipe.cpp +++ b/src/debug/debug-pal/unix/twowaypipe.cpp @@ -24,11 +24,16 @@ bool TwoWayPipe::CreateServer(DWORD id) PAL_GetTransportPipeName(m_inPipeName, id, "in"); PAL_GetTransportPipeName(m_outPipeName, id, "out"); + unlink(m_inPipeName); + if (mkfifo(m_inPipeName, S_IRWXU) == -1) { return false; } + + unlink(m_outPipeName); + if (mkfifo(m_outPipeName, S_IRWXU) == -1) { unlink(m_inPipeName); |