From f69810898ca319b7518a471b748aa7113b2ffbfc Mon Sep 17 00:00:00 2001 From: "@Nurullah.Damla" Date: Wed, 6 Nov 2019 13:03:13 +0100 Subject: [PATCH] Syntaktische korektur --- src/SharedMemory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SharedMemory.cpp b/src/SharedMemory.cpp index d1b4b31..d1df9a0 100644 --- a/src/SharedMemory.cpp +++ b/src/SharedMemory.cpp @@ -7,9 +7,9 @@ int shared_memory_init(key_t key){ memory_id = shmget(key, SHMMAXSIZE, IPC_CREAT | 0666); - if(shmid == -1){ + if(memory_id == -1){ key++; - shmfnk(key); + shared_memory_init(key); return memory_id; } return 0;