From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10650a,5603455807d3f9ba,start X-Google-Attributes: gid10650a,public X-Google-Thread: 1164f8,5603455807d3f9ba,start X-Google-Attributes: gid1164f8,public X-Google-Thread: f678f,5603455807d3f9ba,start X-Google-Attributes: gidf678f,public From: kamal@wipsys.stph.net Subject: 'Shared memory' problem Date: 1997/12/30 Message-ID: <883492008.1327890444@dejanews.com>#1/1 X-Deja-AN: 311518905 To: butenhof@zko.dec.com,neth@zk3.dec.com,kamal@wipsys.stph.net X-Http-User-Agent: Mozilla/3.01Gold (Win95; I) X-Originating-IP-Addr: 196.12.37.133 () Organization: Deja News Posting Service X-Authenticated-Sender: kamal@wipsys.stph.net X-Article-Creation-Date: Tue Dec 30 14:26:48 1997 GMT Reply-To: kamal@wipsys.stph.net Newsgroups: comp.sys.dec,comp.unix.internals,comp.unix.osf.misc Hello there, I have a problem related to shared memory. Please see whether you could help me in getting over this. In my program, shared memory call, shmat, is setting errno as EINVAL(22), when called as shmat(id,NULL,0); These are some observations I made, while debugging. * Shared memory with that id exists in the system and already three processes are attached to the same. * This is the 30th shared memory being attached to the process. However, system's limit on shared segments per process is set as 64. * In all, 40 shared segments exists in the whole system and about 240 shm attaches( shmat(..) ) are done across all processes. * I am working on Digital Unix 4.0 Given the above, please suggest me what are other factors which would cause 'shmat' to set errno as EINVAL. Thanks in advance, Kamal. -------------------==== Posted via Deja News ====----------------------- http://www.dejanews.com/ Search, Read, Post to Usenet