From 04439123c2d14d747237fe2ed1ab1cb83a7e152b Mon Sep 17 00:00:00 2001 From: Julian Hinxlage Date: Wed, 27 Nov 2019 13:08:32 +0100 Subject: [PATCH] ~ changed shared memory size --- main/main.cpp | 1 - src/SharedMemory.h | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/main/main.cpp b/main/main.cpp index 752fcef..9a8548f 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -18,7 +18,6 @@ int main(int argc, char** argv) { std::atexit(deleteSharedMemory); std::string eingabe; - while(eingabe != "exit") { std::cout << "cmd# "; std::cin >> eingabe; diff --git a/src/SharedMemory.h b/src/SharedMemory.h index 26a4d1d..fb7c68b 100644 --- a/src/SharedMemory.h +++ b/src/SharedMemory.h @@ -6,9 +6,8 @@ //ID-Speicherbereich //Größe des Speicherbereichs hier 8MB (8000) -#define shmMaxSize 8000 //Shared-Memory-Segment erstellen oder öffnen – shmget() -#define Max_Memory_Size 8000 +#define Max_Memory_Size 8000 * 1024 void deleteSharedMemory(int s); void deleteSharedMemory(void); void initSharedMemory(void);