QNX 6.1 mmap() -> 100% cpu

I am porting some QNX 4.25 code to QNX 6.1. I have two programs that
access shared memory. One program creates and maps the shared memory
(shm_open() followed by mmap())…this program, AFAIK, runs fine.

The second program is then started and it hits 100% cpu usage when it
calls mmap().

mmap() never returns.

These two programs worked just fine under 4.25, but do not work under
6.1.

Anyone have any advice for me?

Thanks,
Mark

Mark Johnson <nooz@my-deja.com> wrote:

I am porting some QNX 4.25 code to QNX 6.1. I have two programs that
access shared memory. One program creates and maps the shared memory
(shm_open() followed by mmap())…this program, AFAIK, runs fine.

How do you set the size of the memory area? That changed between
QNX4 & QNX6.

The second program is then started and it hits 100% cpu usage when it
calls mmap().

Some of the flags and parameters are a little bit different – can
you post the code for both?

-David

QNX Training Services
I do not answer technical questions by email.