delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <20060623220054.82828.qmail@web34209.mail.mud.yahoo.com> |
Date: | Fri, 23 Jun 2006 15:00:54 -0700 (PDT) |
From: | Rahul Gulati <rgulatius AT yahoo DOT com> |
Subject: | Issue with shmget |
To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hi, I am new to cygwin and trying to port existng Linux based implementation of shared memory on cygwin. I am having issues with shmget call. I tried to debug and found out that everytime I try to call shmget function I get an error and the main thread exits: Program exited with code 06000 I checked cygwin documentation and mailing lists: I have ipc-daemon2 running cygserver is also running with default options which includes : XSI IPC Shared Memory support. Would appreciate if someone could point out what is the real issue. Thanks... Rahul ps -aef output:: rgulati 2984 3980 con 15:04:43 /usr/bin/ipc-daemon2 SYSTEM 2088 1 ? 17:31:08 /usr/bin/cygrunsrv SYSTEM 2796 2088 ? 17:31:08 /usr/sbin/cygserver rgulati 3852 1432 con 17:59:05 /usr/bin/ps Here is a snippet of my code: int main{) { int i; for (i=0; i<SHM_TAB_SZ; i++) { shm_tab[i].free=1; } shm_id = shmget(LOADGEN_SHM_KEY, SHM_TAB_SZ*sizeof(SHM_DATA), 0777|IPC_CREAT); if (shm_id <0) { if (debug) printf("\nLGEN:shmget failed...\n"); perror("LGEN:shmget:"); } } __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |