When I use shm_open()/mmap to create shared memory between 2 processes and
then use munmap/close when done, I get a core dump… If I re-order the
close/munmap calls I get the same result( e.g close, munmap = munmap,
close). If I omit the munmap and only call close, no core dump.
If I only call close without the munmap, will a memory leak be present
(process does not necessarily exit when closing/munmapping)?
I know this sequence worked fine under QNX4.
Tia
Brian Meinke
RoverFan_SE7@Grnet.com
Found the problem…
“Brian Meinke” <Brian.Meinke@Bepco.Com> wrote in message
news:9f8i52$f4u$1@inn.qnx.com…
When I use shm_open()/mmap to create shared memory between 2 processes and
then use munmap/close when done, I get a core dump… If I re-order the
close/munmap calls I get the same result( e.g close, munmap = munmap,
close). If I omit the munmap and only call close, no core dump.
If I only call close without the munmap, will a memory leak be present
(process does not necessarily exit when closing/munmapping)?
I know this sequence worked fine under QNX4.
Tia
Brian Meinke
RoverFan_SE7@Grnet.com