Terve Try out this example Split it in seperate files ( Needs x )
RalfsK > Hello. I have problems in getting a shared memory to work. > What works is my shmalloc() which is used for sharing memory > over fork(). What does not work is sharing memory between > arbitrary processes. This latter uses ftok() with a pathname > (e.g., "/tmp/globalshm") in identifying the shared memory. > Each process uses the pathname for gaining access to the shared > memory. > > The simple example in "http://www.funet.fi/~kouhia/shmserver.tar.gz" > does not work. It looks like shmserver creates the shared memory, > but shmclient cannot find it. --- This message contains no viruses. Guaranteed by Kaspersky Anti-Virus. www.antivirus.lv
shm_3prg_xtrm.c
Description: Binary data
