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*/