summaryrefslogtreecommitdiff
path: root/080_blog/00035_Programming/00010_IPC
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2019-03-17 18:14:32 +0100
committerMiguel <m.i@gmx.at>2019-03-17 18:14:32 +0100
commit0e4810dcfb132bf276a282e25b8523a4009ae08b (patch)
treedac6dce820f0a35d9ed7ea7676982a0f86fd0edb /080_blog/00035_Programming/00010_IPC
parentad6411e9ec256b03f20b9195e25cb128fe02c628 (diff)
rename blog dir
Diffstat (limited to '080_blog/00035_Programming/00010_IPC')
-rw-r--r--080_blog/00035_Programming/00010_IPC/.index.md.swpbin12288 -> 0 bytes
-rw-r--r--080_blog/00035_Programming/00010_IPC/index.md24
2 files changed, 0 insertions, 24 deletions
diff --git a/080_blog/00035_Programming/00010_IPC/.index.md.swp b/080_blog/00035_Programming/00010_IPC/.index.md.swp
deleted file mode 100644
index 87e0eaa..0000000
--- a/080_blog/00035_Programming/00010_IPC/.index.md.swp
+++ /dev/null
Binary files differ
diff --git a/080_blog/00035_Programming/00010_IPC/index.md b/080_blog/00035_Programming/00010_IPC/index.md
deleted file mode 100644
index e42e38f..0000000
--- a/080_blog/00035_Programming/00010_IPC/index.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# Inter Process Communication
- March 14, 2018
-
-We can attach nicely to same memory segment from 2 different processes:
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.c .numberLines}
-// ipc via shared mem
-// attach to shared memory;
-key_t my_ftok = ftok("~/surf-webext-dom-shared-mem",'a');
-
-int mem_seg=shmget(my_ftok,1024*1024,IPC_CREAT|0660);
-if(mem_seg==-1)
-{
-g_print("shmget failed: %s\n",strerror(errno));
-}
-
-shared_buf=shmat(mem_seg,NULL,0);
-if(shared_buf==(void*)-1)
-{
-g_print("shmat failed: %s\n",strerror(errno));
-}
-g_print("attached to shared memory.\n");
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-