Skip to content

Commit 2a0e319

Browse files
bugfix of tsharedmemory initiation.
1 parent 004c983 commit 2a0e319

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/test/test.pro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ SUBDIRS += mailmessage multipartformdata smtpmailer viewhelper paginator
55
SUBDIRS += fieldnametovariablename rand urlrouter urlrouter2
66
SUBDIRS += buildtest stack queue forlist
77
SUBDIRS += jscontext compression sqlitedb url malloc
8-
!mac {
9-
SUBDIRS += sharedmemoryhash sharedmemorymutex
10-
}
8+
SUBDIRS += sharedmemoryhash sharedmemorymutex
119
unix {
1210
SUBDIRS += redis memcached
1311
}

src/tsharedmemory_unix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ TSharedMemory::~TSharedMemory()
5353
bool TSharedMemory::create(size_t size)
5454
{
5555
static const header_t INIT_HEADER = []() {
56-
header_t header;
56+
static header_t header;
5757
rwlock_init(&header.rwlock);
5858
return header;
5959
}();

0 commit comments

Comments
 (0)