Browse Source

Change to allow fully-specified paths to be passed as posix NamedPipe paths, to be able to specify the temp file's location.

tags/2021-05-28
jules 11 years ago
parent
commit
b18dd57e42
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      modules/juce_core/native/juce_posix_NamedPipe.cpp

+ 6
- 1
modules/juce_core/native/juce_posix_NamedPipe.cpp View File

@@ -194,7 +194,12 @@ bool NamedPipe::openInternal (const String& pipeName, const bool createPipe)
pimpl = new Pimpl (File::getSpecialLocation (File::tempDirectory)
.getChildFile (File::createLegalFileName (pipeName)).getFullPathName(), createPipe);
#else
pimpl = new Pimpl ("/tmp/" + File::createLegalFileName (pipeName), createPipe);
String file (pipeName);
if (! File::isAbsolutePath (file))
file = "/tmp/" + File::createLegalFileName (file);
pimpl = new Pimpl (file, createPipe);
#endif
if (createPipe && ! pimpl->createFifos())


Loading…
Cancel
Save