Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2009 20:31:15 +0200
From:      Lothar Scholz <scholz@scriptolutions.com>
To:        freebsd-arch@freebsd.org
Subject:   Posix shared memory problem
Message-ID:  <588815840.20090509203115@scriptolutions.com>

next in thread | raw e-mail | index | archive | help
Hello,

Thanks for solving the posix semaphore problem. But with shared memory
there comes the next issue:

int main() {
  int m;
  shm_unlink("/barfoo");
  m = shm_open("/barfoo", O_RDWR|O_CREAT|O_EXCL, S_IRWXU);
  if (m == 1) perror("shm_open error");
}

i always get permission denied error, and i tried many values
for flags and mode? I can only get this working as root but not
as a normal user.


-- 
Best regards,
 Lothar Scholz              mailto:scholz@scriptolutions.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?588815840.20090509203115>