diff options
| author | Miguel <m.i@gmx.at> | 2019-03-19 12:04:02 +0100 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2019-03-19 12:04:02 +0100 |
| commit | 2074edea81ea129085f451792b5ef601bbba46c2 (patch) | |
| tree | 6399f8421459bc8d5cba5dd8a5737298d1e0f9ef /00_blog/00035_Programming/00010_IPC | |
| parent | ac80f0ef348db426029a70745bb7a15ead38e028 (diff) | |
new stuff and sort stuff
Diffstat (limited to '00_blog/00035_Programming/00010_IPC')
| -rw-r--r-- | 00_blog/00035_Programming/00010_IPC/.index.md.swp | bin | 12288 -> 0 bytes | |||
| -rw-r--r-- | 00_blog/00035_Programming/00010_IPC/index.md | 24 |
2 files changed, 0 insertions, 24 deletions
diff --git a/00_blog/00035_Programming/00010_IPC/.index.md.swp b/00_blog/00035_Programming/00010_IPC/.index.md.swp Binary files differdeleted file mode 100644 index 87e0eaa..0000000 --- a/00_blog/00035_Programming/00010_IPC/.index.md.swp +++ /dev/null diff --git a/00_blog/00035_Programming/00010_IPC/index.md b/00_blog/00035_Programming/00010_IPC/index.md deleted file mode 100644 index e42e38f..0000000 --- a/00_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"); -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - |
