#include "../src/SharedMemory.h" #include #include #include #include int main(int argc, char** argv) { sharedMemoryInit(); struct sigaction sigIntHandler; sigIntHandler.sa_handler = deleteSharedMemory; sigemptyset(&sigIntHandler.sa_mask); sigIntHandler.sa_flags = 0; sigaction(SIGINT, &sigIntHandler, NULL); sleep(3); // TODO: warte auf eingabe std::atexit(deleteSharedMemory); return 0; }