Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <421F82C6.8F7E0391@dessent.net> Date: Fri, 25 Feb 2005 11:55:50 -0800 From: Brian Dessent Organization: My own little world... MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: shmget failed References: <421F7BA4 DOT 4080404 AT lindaspaces DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Jennifer Lai wrote: > I got bad system call error when I tried to compile a program that > contains the following code, > > shmid = shmget(IPC_PRIVATE, size, IPC_CREAT | 0600); > where, size = 661552 > > At first I thought it has to do with the size, but reducing the size to > 128 still cause bad system call error. > Does anyone know what caused shmget to fail? Since you didn't mention it you probably don't have cygserver running, which is required. http://www.cygwin.com/cygwin-ug-net/using-cygserver.html Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/