Lothar Scholz
2009-05-09 18:31:15 UTC
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.
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:***@scriptolutions.com
Best regards,
Lothar Scholz mailto:***@scriptolutions.com