Example of inter process communication with shm_open().
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
leonnicolas d4c4993c7f
initial commit
4 years ago
Makefile initial commit 4 years ago
README.md initial commit 4 years ago
main.c initial commit 4 years ago
noerror.c initial commit 4 years ago

README.md

shared memory

Simple example of inter process communication with shm_open().

The main process forks itself and then waits for the child to finish. The child writes into a shared memory and exits. After that the main process prints what the child wrote into the shared memory.

Note

The file noerror.c does the same as main.c, but no error handling.

compile

make

run

./main