Skip to content

Commit cc7fb27

Browse files
bugfixes of shared-memory name on mac26
1 parent 2d21e89 commit cc7fb27

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/test/testall.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ WORKDIR=$(cd $(dirname $0) && pwd)
77
cd $WORKDIR
88

99
for e in `ls -d *`; do
10+
[ -f "$e/$e" ] && rm -f "$e/$e"
1011
if [ -f "$e/Makefile" ]; then
1112
make -k -C $e clean
1213
fi

src/tsharedmemory_unix.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
#include <time.h>
1616

1717

18-
TSharedMemory::TSharedMemory(const QString &name) :
19-
_name(name)
20-
{ }
18+
TSharedMemory::TSharedMemory(const QString &name)
19+
{
20+
_name = (name.startsWith("/") ? "" : "/") + name;
21+
}
2122

2223

2324
TSharedMemory::~TSharedMemory()

0 commit comments

Comments
 (0)