From 255b05cd1963c925a495ce2abf6cfb0f37d3662e Mon Sep 17 00:00:00 2001 From: Cigerxwin Chaker Date: Wed, 6 Nov 2019 11:38:46 +0100 Subject: [PATCH] =?UTF-8?q?shared=20memory=20access=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/SharedMemoryAccess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SharedMemoryAccess.cpp b/src/SharedMemoryAccess.cpp index 73a7d46..e5e4543 100644 --- a/src/SharedMemoryAccess.cpp +++ b/src/SharedMemoryAccess.cpp @@ -42,7 +42,7 @@ int semaphoreOperation (int op) { } void writeToShm(char* text, int size) { - int shmId = shmget(memoryAccessKey, NULL, 0); + int shmId = shmget(memoryAccessKey, NULL, 0); // dont init just get the ID if already existing. if(shmId < 0 ) { exit(EXIT_FAILURE); /* we could return -1, not sure if it will be useful to continue after there is no shm allocated for any reason*/