pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
coreclr-git: Limit semaphore names to 15chars including nul
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Sat Apr 23 18:22:31 2016 +0200
Changeset: d6f48452135bc4d15b18990c1c53c317e8e830fc
Added Files:
coreclr-git/patches/patch-src_pal_src_thread_process.cpp
Log Message:
coreclr-git: Limit semaphore names to 15chars including nul
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d6f48452135bc4d15b18990c1c53c317e8e830fc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
.../patches/patch-src_pal_src_thread_process.cpp | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diffs:
diff --git a/coreclr-git/patches/patch-src_pal_src_thread_process.cpp b/coreclr-git/patches/patch-src_pal_src_thread_process.cpp
new file mode 100644
index 0000000..6ab13c9
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_src_thread_process.cpp
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- src/pal/src/thread/process.cpp.orig 2016-04-22 07:58:05.000000000 +0000
++++ src/pal/src/thread/process.cpp
+@@ -1398,9 +1398,10 @@ static bool IsCoreClrModule(const char*
+ // to clean up its semaphore.
+ // 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* RuntimeOldContinueSemaphoreName = "/clrco%08x%016llx";
+-static const char* RuntimeContinueSemaphoreName = "/clrct%08x%016llx";
++// NetBSD limits semaphore names to 15 characters, including null (at least up to 7.99.25).
++static const char* RuntimeStartupSemaphoreName = "/clrst%04x%04llx";
++static const char* RuntimeOldContinueSemaphoreName = "/clrco%08x%04llx";
++static const char* RuntimeContinueSemaphoreName = "/clrct%04x%04llx";
+
+ class PAL_RuntimeStartupHelper
+ {
Home |
Main Index |
Thread Index |
Old Index