From owner-freebsd-arch@FreeBSD.ORG Sat May 9 18:33:19 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 791D9106566C for ; Sat, 9 May 2009 18:33:19 +0000 (UTC) (envelope-from scholz@scriptolutions.com) Received: from dd17920.kasserver.com (dd17920.kasserver.com [85.13.138.236]) by mx1.freebsd.org (Postfix) with ESMTP id 3C74E8FC0A for ; Sat, 9 May 2009 18:33:18 +0000 (UTC) (envelope-from scholz@scriptolutions.com) Received: from X64SSD (unknown [222.123.80.238]) by dd17920.kasserver.com (Postfix) with ESMTP id 1CA35181B39B7 for ; Sat, 9 May 2009 20:33:16 +0200 (CEST) Date: Sat, 9 May 2009 20:31:15 +0200 From: Lothar Scholz X-Mailer: The Bat! (v3.62.08) Professional Organization: Scriptolutions X-Priority: 3 (Normal) Message-ID: <588815840.20090509203115@scriptolutions.com> To: freebsd-arch@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Posix shared memory problem X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Lothar Scholz List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 May 2009 18:33:19 -0000 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