Skip navigation.
Home
The QNX Community Portal

View topic - shared memory management under QNX 6.3.0

shared memory management under QNX 6.3.0

Read-only archive of qnx.newuser (Installation, configuration and administration of the QNX Neutrino or QNX Momentics environments) at inn.qnx.com

shared memory management under QNX 6.3.0

Postby dadji » Wed Dec 13, 2006 11:58 am

Hello,
i am wrote an middleware application that creates share memories for
requesting processes on QNX.6.2.1 using the function shm_open(acShMem,
O_RDWR | O_CREAT, 0666), where acShMem is a pointer to a character with a
'/' at the beginning (i.e. "/MYSHMEMNAME").

Now i try to run this application under QNX 6.3.0 and i have following
problem:
when the application calls shm_open(acShMem, O_RDWR | O_CREAT, 0666) for the
6th. time, shm_open() returns -1
with the following value of errno:
errno=22 strerror(errno)=Invalid argument

Could you please explain me this behavior?

PS: my middleware application run fine under QNX 6.2.1

Thanks

Dadji
dadji
 

RE: shared memory management under QNX 6.3.0

Postby maschoen » Wed Dec 13, 2006 8:37 pm

Hmmm, if shm_open were broken, a lot of other stuff would be broken too. Maybe they tightend up who can create shared memory where? Is this running as super user? If not, try it and see if that still causes the error. Just a wild guess here.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: shared memory management under QNX 6.3.0

Postby dadji » Thu Dec 14, 2006 11:06 am

i logged in as root

"maschoen" <maschoen@pobox-dot-com.no-spam.invalid> schrieb im Newsbeitrag
news:elpso1$ma4$1@inn.qnx.com...
Hmmm, if shm_open were broken, a lot of other stuff would be broken
too. Maybe they tightend up who can create shared memory where?
Is this running as super user? If not, try it and see if that still
causes the error. Just a wild guess here.
dadji
 


Return to qnx.newuser

Who is online

Users browsing this forum: No registered users and 1 guest