2001-11-27 23:50:13

by Manoj Iyer

[permalink] [raw]
Subject: shmat issue.


Is it possible to do a shared memory attach where the attaching address is
an address where a file was mmapped as MAP_SHARED??

I am attaching a testcase that will do this. I was under the impression
that shmat will attach only unmapped memory.

compile the test as cc -oshm_test shm_test.c

Thanks
Manoj

*******************************************************************************
The greatest risk is not taking one.
*******************************************************************************


Attachments:
shm_test.c (10.27 kB)
shmat test