diff options
author | Aditya Mandaleeka <adityam@microsoft.com> | 2016-02-25 13:51:32 -0800 |
---|---|---|
committer | Aditya Mandaleeka <adityam@microsoft.com> | 2016-02-25 13:51:32 -0800 |
commit | 6275f358331cc079f84ea9ae67dbeef74edf6faf (patch) | |
tree | 55bb8b4e0ba12faa0471370bce3c41a929cde201 /src/pal | |
parent | fd3b7660e8374d4388d25edb507526c0b960d535 (diff) | |
download | coreclr-6275f358331cc079f84ea9ae67dbeef74edf6faf.tar.gz coreclr-6275f358331cc079f84ea9ae67dbeef74edf6faf.tar.bz2 coreclr-6275f358331cc079f84ea9ae67dbeef74edf6faf.zip |
Reduce debugger semaphore name length.
Diffstat (limited to 'src/pal')
-rw-r--r-- | src/pal/src/thread/process.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pal/src/thread/process.cpp b/src/pal/src/thread/process.cpp index a520ea6769..4d40781ca6 100644 --- a/src/pal/src/thread/process.cpp +++ b/src/pal/src/thread/process.cpp @@ -1396,8 +1396,10 @@ static bool IsCoreClrModule(const char* pModulePath) // between processes with the same PID (which ran at different times). This is to avoid // cases where a prior process with the same PID exited abnormally without having a chance // to clean up its semaphore. -static const char* RuntimeStartupSemaphoreName = "/RuntimeStartupEvent%08x-%llu"; -static const char* RuntimeContinueSemaphoreName = "/RuntimeContinueEvent%08x-%llu"; +// Note to anyone modifying these names in the future: Semaphore names on OS X are limited +// to SEM_NAME_LEN characters, including null. SEM_NAME_LEN is 31 (at least on OS X 10.11). +static const char* RuntimeStartupSemaphoreName = "/clrst%08x%016llx"; +static const char* RuntimeContinueSemaphoreName = "/clrco%08x%016llx"; class PAL_RuntimeStartupHelper { |